Legal and illegal are two different words with opposite meanings.
Larkin was issued a legal order and he will be found guilty of disobeying that order.
Exactly. His reason is irrelevant. He could have just as easily said “This is an illegal war”. He still goes to jail.