This view of yours is primitive and nauseating. Luckily the judicial system in my country doesn't agree. Putting yourself in a dangerous situation is stupid, but we punished everybody who was ever stupid by raping them then everyone would be a rape victim (no exceptions). There's no crime more disgusting, I'd rather be murdered. People who try to make excuses for rapists are tempting me to punch them in the face, and according to your argument if I did so, I couldn't be held accountable. Yeah, that's a great way to run a society.
Or, she could carry a gun.