If you’re so bad at socializing that you might accidentally harass someone, fix that! Don’t just retreat from the world because you can’t handle a basic skill.
Edit: Interesting downvotes. Is it the suggestion that women are people, or the suggestion for self-improvement if you’re incapable of treating them accordingly?