That verse is necessary for that which was taught by Rabbi Yosei, son of Rabbi Ḥanina, who said: Why are these three oaths (Song of Songs 2:7, 3:5, 8:4) needed? One, so that the Jews should not ascend to Eretz Yisrael as a wall. And another one, that the Holy One, Blessed be He, adjured the Jews that they should not rebel against the nations of the world. And the last one is that the Holy One, Blessed be He, adjured the nations of the world that they should not subjugate the Jews excessively.
(א) הזהירנו מהושיב עובדי ע"ז בארצנו כדי שלא נלמוד כפירותם, באמרו לא ישבו בארצכם פן יחטיאו וגו', ואילו רצה העכו"ם לעמוד בארצנו אינו מותר לנו עד שקבל עליו שלא לעבוד ע"ז ואולם עובדי ע"ז לא ישכנו עמנו ולא נמכור להם נחלה ולא נשכיר להם בית, ובבאור אמרו לנו הפירוש לא תתן להם חנייה בקרקע. (ואלה המשפטים, שם):
We are commanded not to settle idolaters in our land so that we may not learn from their denials. As it says (Shemot 23:33): "They shall not dwell in your lands lest they make you sin". If the idolater wants to remain in our land it cannot be allowed until he accepts upon himself not to serve idols. Thus, idolaters shall not dwell with us, we shall not sell land to them nor rent a house to them....
(א) אסור ליתן מתנת חנם לעע"ג רתב ב"י לאו לאפוקי גר תושב דהיינו שקבל עליו ז' מצות בני נח וזהו שאנו מצוים להחיותו עכ"ל. ולפי דבריו קשה למה לו לרבינו לכתוב לעע"ג ולתת מכשול שיבינו למעט ישמעאלים:
One may not gift to an idolater but one may gift to a Ger Toshav as the Torah obligates us to help him live.