They can’t. It’s literally a crime according to the Uniform Code of Military Justice.
A few years back they hunted down and charged 4 soldiers who anonymously posted to a facebook group that they would not follow any deployment orders issued by Obama.