Law does not(and cannot) PREVENT crime (this is not the purpose of criminal law in any case, laws DEFINE criminal activity and prescribe penalties for said crimes. (obvious isn't it, yet how many people have never considered this?)