How are they going to do that? The military can not just ignore an order or can they?
If the order is illegal, yes they can ignore it and refuse to follow the order. They just have to make up their minds what they want for this country.