The law can be used to control the lawless, and it can also be a tool for the lawless against the law abiding. For example, you have speed laws to prevent reckless driving on roads, but it can also be used by corrupt communities to extort money from the public. You have health and safety laws to prevent the unsafe operation of businesses. But knowing that it is impossible to meet every regulation at all times, if a criminal wants to take over a property, they bribe the inspectors to enforce every law to the fine print.
They key is in who is applying the law. And what their attitude is.