Read this on another site:

People are already offering up solutions to this tragedy. There isn't one.

Evil people exist. They always will. Some people are simply born broken. They want to rape, kill, hurt, whatever.

You can prepare for them, look out for them, and do your best to be vigilant, but you can't legislate them or counsel them to not be broken.