Was it Henry David Thoreau who said, “When the law is wrong, break it”.
That would be Thomas Jefferson: "If a law is unjust, a man is not only right to disobey it, he is obligated to do so."