Well, that's one approach.
I have a different view.
When I know that what I believe is correct, and that I have done the right thing, my attitude is such that nobody has the RIGHT to punish me for doing the right thing. Accordingly, I do not view the person with the authority to punish as having LEGITIMATE authority in such a case. Simply cooperating with authority and letting it punish me is letting the bad guys inflict pain on me that I don't think they have the right to inflict in the first place.
Of course, therefore, I do not feel obliged to cooperate with their oppression of me, for instance by telling them the truth. If what I am doing is right, but somebody is going to punish me anyway, I assert my sovereign right to defeat them by lying to them. That too is part of resistance.
Fortunately this doesn't come up very often.
"Of course, therefore, I do not feel obliged to cooperate with their oppression of me, for instance by telling them the truth. If what I am doing is right, but somebody is going to punish me anyway, I assert my sovereign right to defeat them by lying to them. That too is part of resistance. "
So adding something that's actually wrong to a perceived wrong still keeps you in the right? It sounds like you would be all right with terrorism as long as the cause was just. Despite the fact that most worthwhile change is accomplished by nonviolent resistance - "within the system." If you strike out against injustice, but then drop to your knees when they catch you, nobody will respect you and you will have accomplished nothing.