If you're not a citizen, whatever the country, you're a guest. It would be absolutely terrible to be a resident for years and then told you're no longer welcome, but I don't think it is a moral issue.
If I invite someone to live with me and they stay for ten years, it is not evil for me to kick them out afterwards.
A "Permanent Resident" is permanent. That's not a guest any longer. And if kicking someone out of their home isn't a moral issue, I don't know what is.
> If I invite someone to live with me and they stay for ten years
If you sign a contract saying they're allowed to live with you for ten years, and kick them out after 3 years, I would argue that it is evil (not to mention illegal).
If I invite someone to live with me and they stay for ten years, it is not evil for me to kick them out afterwards.