“Rape is perhaps the only crime in which the victim becomes the accused,” wrote Freda Adler in her seminal 1975 book, Sisters in Crime: The Rise of the New Female Criminal.

The phrase proved to be particularly true earlier this week in Somalia, where a court sentenced a 27-year-old woman—who was...