Do you have any examples of that actually happening?
Technically, socialism is supposed to be the transitional stage on the way to communism, in the sense that communism is what you get once the state 'withers away' under socialism. In practice the state showed no sign of withering. I have to assume though that you are using the words in some other way (communism as some sort of 'worse' kind of socialism?)
The actual historical record seems to be that if you put up with monarchism or absolutism or fascism for long enough, you wake up in a communist country one day. And if you put up with communism for long enough you wake up in a capitalist country one day. And if you put up with capitalism for long enough you wake up in a fascist country one day.
That seems to be how it has worked, historically speaking, in the real world.
In reality, socialism that exists in a functional democracy becomes Social Democracy, whereby there is still free enterprise for some aspects of the economy that are not essential for everyday life, and government-run aspects of society that remove the profit motive to ensure that everyone is getting requirements without those requirements acting as a stranglehold on the citizens of that country.
Which is why, unlike the Ronald-Reagan paraphrase of Alpha One Seven, socialism operating under functional democracy becomes what we see in Western Europe and Scandinavia - high-tax, high-service countries. We see with those socialist countries above-average GDPs, and much higher levels of self-reported happiness and well-being than countries where private companies control whether citizens of that country can "afford" shelter, power, heat, communications, education and healthcare. You know, whether citizens can afford to become functioning citizens based typically on how wealthy they were born, and whether they were lucky or not growing up.
Here in "capitalist" countries, the poor, middle class, and upper middle class are pitted against each other for always-decreasing services as the people who own and operate that country take more for themselves and class-shame everyone else for not being born a multimillionaire.