That’s a fair point, so let’s take it on board:
The vast majority of immigrants are legally in the country.
“Immigrants without legal status are only a small fraction of the total immigrant population in most rich countries.
For example, just 7% of immigrants in the United Kingdom lack legal status. It’s 4% in Germany and less than 2% in the Netherlands.”
https://ourworldindata.org/data-insights/most-immigrants-in-high-income-countries-have-legal-status#:~:text=Immigrants without legal status are,than 2% in the Netherlands.