How to prevent crimes using earthquakes