In A Few Good Men, two marines carried out a “code red” On a fellow soldier.
He died.
It was an illegal order.
Their defence was that it came from a top commander at the base.
They proved it in court, but they were still dishonourably discharged.
Why? Because you’re trained to disobey illegal orders.
You’re trained to do what’s right.