I don't think anyone denies it is better to be safe than sorry.
However, there is a major fallacy in the arguments of those who propose 'modesty' as a means to prevent rape. The argument that 'modesty' can prevent rape would hold water if there was any sort of correlation or causation between 'modesty' and 'instances of rape'. The truth is that rape has absolutely nothing to do with modesty. There is not even a remote correlation between rape and how the victim was dressed. Anyone can get raped – a modestly dressed women, a school girl in uniform, an innocent child, an elderly person and yes even men – it depends very arbitrarily on what drives a rapist and what they prey on.
Rape is actually less about 'sexual gratification' and more about things like power, control, subversion, punishment and humiliation. A rapist is not deriving their pleasure from the actual 'sexual experience' but from the power or control they exert over the victim.
A man with sociopathic ego who cannot stand rejection, will rape a woman who denies their romantic advance irrespective of whether that girl was decent or provocative. A man who has a sociopathic ego to be in charge will rape their wives, prostitutes, women they work with simply when they feel the urge to show who is in charge, the modesty of the woman is irrelevant. We wouldn't advice women to accept all romantic advances lest the man be sociopathic or succumb to a dominating male lest he rape to exert it.
This 'power trip' aspect of rape is why it is such a common occurrence in war. Clearly entire villages are not dancing in front of insurgents or invading armies showing cleavage or behaving in a titillating manner to make men lose control. It is the need for dominance and subvert others that triggers the rape in this situation. That is why sometimes you even have otherwise straight men raping and sodomizing boys and men as well.
This fixation on 'modesty' focuses on the wrong and statistically insignificant cause of rape. Instead of minimizing rape risk the fixation on 'modesty' aggravates actual instances of rape. It incorrectly infers that modesty and rape are correlated, and hence incorrectly concludes that modesty would have prevented rape. This in turn implies that the victim is partly to blame for their fate.
Rapists and sexual abusers take advantage of this incorrect but prevalent attitude in society. In order to reduce their sentencing or even get away with it altogether they try to push the blame on the victim, humiliate or bully the victim to give up or recant accusations by trashing their 'modesty'. Law enforcement also shirks their responsibilities of investigation and justice by blaming the victim and refusing to acknowledge it was a genuine crime. They can get away with this because society is fixated on 'modesty'. However, In most of the cases the victim was just accidentally in the wrong place at the wrong time or being punished/dominated over for turning down or standing up to a man and not actually provocative or immodest.
Women get aggressive for their freedom not because they want the freedom to be s**ts or prance around naked – but because genuine cases of rape have been discarded or not convicted for flimsy reasons such as a short skirt or skinny jeans.
If people are genuinely concerned about rape, then we have to stop making excuses. A rape is a rape and when it occurs the only concern should be investigating and prosecuting it to the full extent of the law. A victims modesty is irrelevant and out of the equation. Make law enforcement and society more accountable and responsible in protecting women. Send a clear message that criminals cannot get away with flimsy excuses. Emphasize self defense and empowerment of women so they can stand up for themselves and not be victimized.
'Be more modest' is just flimsy meaningless advice that does absolutely nothing to minimize and reduce the risk of rape.