So if you care about not making existing citizens lose out—which I do!—find a solution other than protectionism. Find a solution that works. A UBI, so that not finding a job doesn't ruin your life, is a good one. Fund it with income taxes on immigrants who come here and do well. (And on a UBI you can spend as much time as you want training in an advanced skill or learning a complicated profession so that you can compete in another segment of the labor market.)
No country is going to do this because no country wants to admit to their citizens that the "country" and "citizen" abstractions are powerless against the reality of the global free market. It's too politically incorrect; people would rather believe that protectionism works. But it's the right thing to do.
Not for all countries! Definitely an imbalance there, and US is already pretty generous with immigration numbers. We've also seen that cheap labor does not reduce cost of living in developed countries, so importing foreign cheap labor is a loss for not-rich folks.
So if you're in any of these fields, you're competing with people around the world. You're not competing directly—the playing field is still quite bumpy—but it's becoming more level.
So if the actual goal you have is "I want citizens to not starve and be homeless," which is certainly my goal, protectionism is a temporary patch holding back a storm. One day it will stop working. Better to prepare for that day instead of denying it.
(Unless you plan on dying before then and don't care about your kids' future, but I assume all the people in this thread saying "culture" care about that....)
But not everyone in any country can "get X from anywhere" is part of my point.
I can't say I agree at all this would be of benefit to any nation willing to do this.