ANSWER:

No, this is not permissible.

She must fight and resist with all her might even if this leads her to be killed but not to kill herself.

Women must take self defence classes, not go alone to unsafe places and always commute in groups, always be properly dressed in islamic hijab when going out and keep pepper spray etc for self defence and always make dua to Allah for their safety. 

https://islamqa.info/en/answers/144586/is-it-permissible-for-a-woman-who-fears-that-she-will-be-raped-or-one-who-has-been-raped-to-kill-herself

Sheikh, I live in a country where situations for Muslims are really bad and Muslim women are getting open rape threats. Can a woman commit suicide if she’s in a situation where she could be raped ?? Any woman would choose to die rather than losing her dignity..