They could try the “sexual emergency” defense that worked in Austria. And get counseling.
The situation reminds me of the movie “Demolition Man,” where the society of the future is so wussified, so mechanized, that it has no way of dealing with a real criminal.