@sunnysangwan
really depends on the country/region and kind of unrest I guess.
In regions/countries with historical unrest, soldiers are primed to think differently. Fealties change frequently, alliances are dynamic and the only way to survive is to be able to adapt and move in numbers.
For the US, don't you think there'd be some resistance to the general's orders if they clashed with the constitution?