Use it as leverage to milk more money from the US or whichever Western power have influence in your area. Thing is, that can only go so far, America for example isn't exactly swimming in money right now (or we can argue they are, having printed all that new money). Sooner or later, your politicians are gonna sign a deal with China and you better hope you don't end up like Sri Lanka.
I just love this!
For years the US is evil, Americans are destroying everything, now when the alternative has been raised suddenly everyone is begging the Americans to come back.
That visit from a US nuclear carrier in a Vietnamese port is clear proof a lot of realized that while the USA has its flaws in its political interventions it's still better than anything else out there.
Besides, in this war of influence, the tables are set against China, China needs the world to buy its products, the world needs China for manufacturing but while the rest of the world can easily find another manufacturing hub to produce those, China can't find a different world to sell those to somebody.
If only leaders from other underdeveloped nations would have taken the same path at aiming to become manufacturing hubs a decade or two ago we wound;t have this trade war by now, but for some stuffing their pockets rather than building something was more convenient.
We have saying about this "Better the devil you know". It also doesn't help that China has been bullying neighbors. All those countries that went into debt with China, got corruption written all over it. Those politicians got money under the table coz no one in their right minds would have agreed to those terms.