I agree with Glenn Beck, et. al. You don't do that. If you're going to publicly criticize the Commander in Chief, you resign first, then criticize.
The only justification for it is if something is direly wrong -- so wrong you're willing to point it out -- and willing to suffer the consequences.
I suppose that could be the case here.