1) we don't want immigrants. They haven't done anything wrong but people will have a better situtation, better jobs, better house, better partner, better life. The rich will have to provide this if they don't have an alternative.
2) we want immigrants. We want them to work hard, for rewards that we consider beneath us, and then we don't even want to pay them what we promised. For example, if they are even suspected of the slightest of misdeeds over decades we take it all away.
In practice most political positions work like this. And worse than that: people just switch between these two. Make people rich, no real concerns, and the vast majority will be "pro-immigrant" (position 2). Take stuff away from people and they will almost all switch to "anti-immigrant" (position 1). And they'll make excuses such as pro-immigrant giving people better lives, and you hopefully see the problem with that. Pro-immigrant does not mean people want immigrants as equals, in fact the opposite. Anti-immigrant also has many excuses, such as that it prevents brain drain and allows the countries immigrants come from to improve faster. These excuses may even be true, but they're excuses, nothing more.