For the most part, avoiding bad situations is possible.

Remember that at least for right now, you are a woman, not a guy. Don't do things a woman wouldn't do. Don't go walking around after dark alone. Don't visit "bad" parts of town. Don't go to bars alone. Don't dress like a hooker (I can't stress that enough). If your wife or mother wouldn't do it, don't you do it either.

And of course, we have to define "bad situations". Getting raped or beat up is certainly a bad situation. Getting a dirty look or laughed at isn't so bad by comparison. Getting called "sir" when dressed is disappointing, but you will live through it.