You could actually perceive women-only gyms and scholarships as a response to events such as this. How would you react to being told your presence caused bad behavior, and so you'd been disallowed? Why, you'd create a space from whence you couldn't be removed--by making yourself the only entity. However, that's not to say it is an ideal solution. Also, I've never really understood that aphorism, "Can't have your cake and eat it." WTF was the point of giving me the damn cake if I can't eat it?
The adage actually makes more sense if you reverse it:
"You can't eat your cake and have it too."
That is, once you've eat the cake, you can no longer hold it in your hands. It's (generally) used to refer to a situation where one stance or course of action (naturally) precludes another.