> some company where the wages are lower are going to come along, build it cheaper (not necessarily better quality either) and ship it to the world.

Yeah, it's called competition. It existed even in the socialist countries (where is was called "socialist competition/emulation").