Milton Friedman wrote decades ago that you can have a welfare state or you can have open borders but you can’t have both.
It seems so obvious, even a child should be able to see the incentives.