That's true, but that doesn't mean that we should blame the victim, the best way to prevent rape is to educate the society, and by educate the society i don't mean, say that all men are rapist (as you may know, a woman can also be a rapist), is just educate both parties, let them understand what can and cannot be done, and ways to prevent it in the future.