Another interpretation of "who shall dwell in Your tent" (Psalm 15:1) is "who shall sojourn in Your holy mountain" (Talmud Bavli, Tractate Berachot 7b). It is not written here "who shall live" but "who shall dwell". Who is able to dwell permanently in Your presence? Rabbi Yehoshua ben Levi said, "What if Nadav and Avihu, who entered the Temple, left it burnt up?

From here and onward, who shall dwell in Your tent?" Rabbi Shmuel said, "It is written in Chronicles (1:13:9) that Uzzah put forth his hand to steady the Ark, and God was angered with him. From here and onward, who shall dwell in Your tent?" This is similar to a person who enters a foreign country and sees that they sell poisonous food and wonders who can survive on that.

His companions said to him, "One who has a lot of money." Similarly, David said before the Lord, "Who shall dwell in Your tent?" And the Lord replied to him, "One who has performed righteous deeds." (Psalm 15:2)...