Michel De Montaigne said this quote

There is no man so good who were he to submit all his thoughts and actions to the laws would not deserve hanging ten times in his life.