Since both sides will claim to be doing so, how the individual military will decide seems quite an open question.
No it won't, because only one side will be obviously correct. The military cannot obey unlawful orders, period.