An essential element of stopping a potential dictatorship is massive public gatherings that remain as peaceful as possible but don't obey the law.
Clearly convince the military on the ground that they are engaging in illegal activity and they are becoming criminals and serving criminals and betraying their nation.
Women are particularly important in this kind of social resistance. It is essential for credibility that the public be responding to real threats and actually illegal activities.
It's also essential that the public accepts and supports the legitimacy of protest even protests that they do not agree with.
It is the second to last defense against dictatorship.