Most likely both. Communists are good at keeping people under tight control.
Communists are terrible at allowing people enough freedom to prosper.
Prosperous people are a danger to the regime.