https://www.americanthinker.com/arti...can_jewry.html

...Indeed, there is enough evidence to demonstrate that the Bible is an ancient epic of Israel’s history, political theory, cosmology and religion. Therefore, it is intellectually dishonest to conflate an ancient Jewish text with a contemporary political issue.

For example, their obsession with “welcoming the stranger because we were once strangers in the land of Egypt,” refers to Hebrew jurisprudence. It was the Biblical ideal that Israel would be the light unto the nations. As to its superficial application, “stranger” or ger in Biblical language means “resident alien”; that is someone who lives among us legally but has no inherited or original rights. He or she is not merely an individual intending to live among us. The ger is entitled to equality in law and its obligations.

When the Bible refers to Hebrews once being strangers in Egypt, it uses the same term ger, meaning that the Hebrews were legally in Egypt. But they were not Egyptian; they were Israelites. Thus, the injunction regarding the “stranger” did not apply to those who disregard our laws.