It is a warning to people outside that the door is armed. Which means the silde is attatched and active, so no one should open the door from the outside if they can see the red tape.
Also it reminds crew that their door is armed on the inside, before they open the door and most likely kill the person on the outside, should the slide inflate!!