In theory, the military oath is to the constitution and people, but for them to coup the regime, it would imply that high-ranking officers would have to take the risk of high treason. History teaches us that heroes are rarely the highest in the hierarchy, but people that don't have much to loose.