For a good cause, wrongdoing is virtuous.
"Sentences". Collection by Publilius Syrus. Maxim 207,

For a good cause, wrongdoing is virtuous.