See also contraction of welfare state.
This is one of the second-order harms to immigrant-receiving countries mentioned by some opponents of open borders.
The rough idea is: High levels of immigration can trigger anti-immigrant and nativist backlash from those who don’t like immigrants.