Before you cited the history of the Opium Wars, I thought you had a reasonable understanding. Was China retaliated against because it angered Britain? Oh my goodness, that's what Western history teaches!
Let me play the role of a history teacher and give you a brief account of the Opium Wars. Initially, China was a relatively closed agricultural civilization, but it consistently provided tea, silk, and porcelain to foreign countries, earning silver. To maintain a trade balance, Britain relied on opium to earn silver. The Qing Dynasty, realizing the harm of opium, chose to ban the trade. This is how you claim the Qing Dynasty angered the British!
China deserved to be beaten to a pulp. China's lack of sustained progress and its relentless isolation led to its backwardness in modern times. China's decline was inevitable! This is completely different from what you're saying.
So, do you think Africa could fare better in today's society by isolating itself like the Qing Dynasty? North Korea's success or failure depends entirely on the support of Russia and China. People like you should stop analyzing geopolitics; it's too difficult for you!