Our military is not separate from the population. They live among us. They have civilian friends. If it does come to an armed revolution much of the military would join in, others would refuse to fight and stay neutral. I think few would attack the civilian population. (My emphasis)
We lost more Americans to police violence last year than we did to the Taliban or Al Qaeda.
SWAT teams are a different case. Too many police live in the us and them world.