Again, order can be ruled illegal later, but until the military court makes that determination, you will be held in breach of UCMJ for refusing to obey an order.
If you have some time listen to youtu.be/TwPLqGkYnBA where an actual JAG explains it better than I can.
Talaraine@fedia.io 1 week ago
So the Nuremburg trials still hold fast as an example here. A soldier can make the determination to undergo potential courtmartial, or he can avoid the death squad. I know which one I'd pick. We don't have mindless soldiers in our military.
If an order violates the law, they are wise to disobey, just as I said.