I can’t think of one law that would have prevented this.
If the law against murder won’t stop you then nothing will.