The text plays on the double meaning of the phrase 'safe sex'. Traditionally, 'safe sex' refers to sexual practices that protect individuals from sexually transmitted infections and unwanted pregnancies. However, the joke twists the meaning to imply that 'safe sex' once meant avoiding being discovered while engaging in the act, which is a different and humorous interpretation.
Remember when safe sex was not getting caught in the act ?