As a government, your job is to serve the people you govern, who are forced to pay tax for you to do that, above the interests of those who you don't govern and who don't pay tax for you.
Therefore, for example, if you let someone into the area you govern, it has to benefit the people who live there, which means considerations of infrastructure, security, and social cohesion must be satisfied, such that life is made better for communities that are taking immigrants.
Particularly if immigrants are let in and served by the use of tax money, you have to be sure that it will benefit the taxpayer, given that they don't even pay tax voluntarily.
"Benefit" firstly means effect on health and safety.
If you want to serve the interests of those abroad, which you do, then you do that not by importing problems, but by exporting your lack of problems.
Otherwise, you are importing infinity problems relating to the governance of other places.