I think with globalization it is no white and black. Your example illustrates, that to shut one self off of globalization via import restrictions can mean to shut oneself off of streams of economic activity which will be missed. On the other hand, as in every free market, globalization can mean that a competitor, like a nation, gets the short end of the stick. And what makes globalization so dangerous in this regard is that this may effectively force employees to accept worse conditions so a nation remains competitive. And this can constitute a vicious cycle for the whole world.
The unchecked powers of globalization ultimately surely are just as troublesome as profitable. But to go against them as a single nation can cause even more trouble.