It is true that if a country starts to decline economically, then another country will definitely benefit. When a country starts to go down in an economic crisis and if its neighboring country sees it and can export high-quality products and production to become prosperous, then they will be successful. It is certainly true that if a country is to move forward economically, it must trade. If trade stops, a country will quickly start to decline economically. There is competition in every field. Every country competes to move forward economically. Only the country that can produce well and can succeed in trade can move forward economically, every country tries to improve their production and exports to make them economically prosperous. Every country competes for customers. Countries that have more investors and can trade more can move forward economically.
In my opinion, what you've said generally applies to all countries. When we talk about trade competition, countries that can produce goods at a lower cost, like China, have the opportunity to become more developed. Meanwhile, every country certainly has key resources to support its economy. In many cases, developing countries find it difficult to become developed because they are so far behind in technology and industry.
Investors won't come if a country can't maintain its national stability, both legally and politically. I think this is the most difficult challenge, especially if the government is corrupt. Ultimately, instead of becoming a developed country, a country that fails to enforce legal certainty will naturally remain a consumer country and dependent on other countries.