just because the overall economy is better off (often measured in GDP) doesn't mean it is better off for all existing residents (e.g. GDP/capita).. even from a pure free-market perspective, distribution of wealth is not so market driven especially in the short term and when massive distortions deliberately exist in the marketplace (regulation, patents, near-monopolies, barriers, etc.)
Testing the limits of the analogy, but there you are.
http://fortune.com/2015/09/08/germany-migrant-crisis/
>The 6.6 million people living in Germany with foreign passports paid $4,127 more in taxes and social security on average than they took in social benefits in 2012--generating a surplus of 22 billion euros that year, according to one report
More recently:
https://qz.com/901076/what-effect-did-the-record-influx-of-r...
Actually, the consensus among economists is that immigration makes your own economy better off. It has a net positive effect on productivity and prosperity.
In other words, your "rate-limiting" analogy makes zero sense. You want more immigration, not less.