He broke bad laws by doing what was right for the right reasons. His story has been misrepresented, as in the original tellings he didn't "rob from the rich and give to the poor", but took back property which had been stolen through taxation and returned it to its rightful owners. Generally, those who collected the taxes were richer than their victims, but regardless, taxing is still wrong.