The rest of the world can encourage China and India with economic sanctions if they won’t come along for the renewables and EV ride. With that said, China at least is an example of moving to EVs and renewables rapidly.
You don't buy from them. This is already happening [1] [2] [3]. Developing nations have no purchasing power compared to the developed world. They'll kowtow to developed world hegemony if push comes to shove (at least within the scope of US foreign aid [~$40B/year] and dollar dominance).
[1] https://www.google.com/search?q=manufacturing+moving+away+fr...
[2] https://www.freightwaves.com/news/manufacturers-move-away-fr...
[3] https://www.cnbc.com/2022/10/20/china-factory-of-the-world-i...