The solution is to create an environment where individual decision makers are strongly incentivized to make decisions that are collectively beneficial. This is where modern telecommunication technology and - in spite of it's problems - economic globalization can help a lot: nobody wants to drop bombs (atomic or conventional) on another country if their friends or business partners live there.
How many bombs did Russia drop on Crimea during that invasion?
Russia may have had ties to local areas like Crimea, but the are not as integrated economically and socially on a global scale. Compared to e.g. US/EU relations, a lot of people in the US still see Russia as suspicious/hostile.
Russia's attempts to disguise their initial presence with astroturf "popular support" is an example of the country being increasingly aware of how they appear on the international stage. Bombs become less appealing as the economic cost of pissing off the rest of the world grows. Unfortunately, there is still a lot of work to do to create that goal.