This should have been obvious since the Opium Wars and the Opening of Japan (see Commodore Matthew Perry).
All developed countries are pro free trade for markets where they are strong and fiercely protectionist where they are not (or they consider those markets strategic priorities).
I'm from Romania. Romania joined the EU in 2007, so we had to liberalize everything. It has generally been good for us (higher wages, economic growth, overall development), but I know all the German, French, Belgian supermarket chains.
Do you know why I know them? Because there are 0 (zero!) local supermarket chains left. They've all been bought by foreign companies.
Similar story for banks, car companies, whatever.
During the 2008 economic crisis Erste, Austrian banking group, repatriated all the local profits (from BCR, former major Romanian bank) to Austria so that the local banks would not be impacted. Similar story for OMV, Austrian oil and gas group (from Petrom, former major Romanian oil and gas company).
It's a mixed bag, really. You need some foreign investment to kickstart things, but if you don't start blocking stuff off, you'll never go over the middle income barrier, at best. At worst you practically become someone else's colony, or in the olden days, you actually were their colony (and what happened in Bengal in 1941 and Ireland in the 1800s comes to mind).