"Do this."
"That's illegal, sir. It is wrong. I swore an oath not to do things like that. I realise it may harm my career, but I am duty bound to refuse that order."
"OK...hang on a minute...OK, it's legal now, you have to do it."
How do you deal with that? Other than submitting to military punishment for refusing a "legal" order?