Western countries only like democracies when they can chose the people running them. Western countries only like democracies when they allow companies from those countries to go in, exploit people, and plunder resources. Western countries only like democracies when they don’t serve the people, but rather the elites and the corporations. Otherwise, those same countries who wax eloquently about the dangers of dictatorships and the need for democracy will launch an invasion on some pretext (real or made-up) and replace that democracy with a puppet state. Or, they ensure a stable state never forms in the first place. And, of course, this is tied in with capitalism and the ownership of our government by (big) corporations.
Don’t be distracted. What Donald Trump said today is not an anomaly — it is implicitly or explicitly believed by at the very least a large minority of the population. The reason these nations are getting screwed over is that companies and governments from all around the world are ensuring that either those governments are obsequious to other governments and corporations (and not actually working for their people) or that those governments don’t exist in the first place. Fixing this requires deconstructing the paradigm that we have built.