Bertolt Brecht said this quote

The law was made for one thing alone, for the exploitation of those who don't understand it, or are prevented by naked misery from obeying it.