To ensure that the protesters were not a crowd, but an organized mass, you need to prepare. Very long preparation.
In the Russian Empire, the 1905 revolution was also suppressed by mobile detachments of Cossacks. They rode into the crowd on horseback and struck with swords and whips. The police also sent provocateurs. Although the protesters have been building since then, more than 100 years have passed. But the revolution of 1917 won. It was preceded by a very long preparation, the creation of underground organizations, etc.
Maidan in Ukraine also won. For its preparation, too, various organizations were created. 5 milliards of dollars were transferred from the United States to create "democratic institutions" in Ukrainian society. Employees of the SBU (counterintelligence service) were trained by the CIA, the military also studied in the United States. The coup was preceded by the actions "Ukraine without Kuchma" and the first Maidan. At the right moment, the security services and the army betrayed President Yanukovich, the masses of people came out on the square, and he had virtually no allies left. The media showed only one point of view - a Pro-Western one. (the current President was portrayed as a bloody tyrant, and savages throwing Molotov cocktails at the police were portrayed as innocent children.)
This is decades of preparation!
Ps: You can still like in Syria-the army is being introduced into a city that is held by several thousand protesters. Starts shooting. Destroys the entire block. Protesters take over another block. And so on until the city burns to the ground. Then they dig the catacombs and the positional war begins. But no one will like it.