As someone who has DM'd for a VERY long time you need to know your audience aka Your Players. They are human, they come from different backgrounds, they could be perfectly ok with a prison riot, a rape scene, or something straight out of Event Horizon. Then again, they might not but you as the Storyteller, need to know what they can and cannot take and to what limit you can push you and them to without devolving into creeping out your players.
If it happens, and it has to me, you sit down and talk with your players IMMEDIATELY and find out the issue and resolve it. Discuss the conflict and come to a compromise. Perhaps you were over the line, perhaps they aren't a good fit for the party/story, could be anything but in a Social Game such as most TTRPG's dialogue must occur and you must be proactive when and where there is conflict that threatens the group cohesion.
People think it's as easy as "Oh let's get together, tell a story, roll some dice, have a few beers, etc." yes it can be, but everyone that comes to the table comes with ideas, concepts, and baggage that you just don't know about. This is why I set certain boundaries on my campaigns and tell the players that this is the line I will not cross: no sex with kids/animals[No Just No], no gratuitously sexy time events [wanna RP a full day in a brothel? Not unless you are there for other things than getting your rocks off], and sexual violence to a minimum. The players are all adults and understand this BEFORE the campaign starts and BEFORE they join the game. Those that are uncomfortable with the tone I say "This game isn't for you, there are others out there you can find them here. " and move on.
TLDR: Treat adults like adults, talk to adults like adults, be an adult and the game Just Works(TM)