This is simply harassment. If a rapist or pervert wants to commit a crime like that I don't think they are going to obey this law anyway.  What's the point, except legal harassment of a population that already has enough hurdles to deal with in society.