“וְשַׁבֵּחַ אֲנִי אֶת הַמֵּתִים שֶׁכְּבָר מֵתוּ מִן הַחַיִּים אֲשֶׁר הֵמָּה חַיִּים עֲדֶנָה”
“So I congratulated the dead who are already dead more than the living who are still living.”
‘the living who are still living’ are those who went through the correction process twice after death. They are considered as purified silver after twice refinement in the melting oven.
Those ‘who are already dead’ are those that didn’t sin and in the higher level of the Garden of Eden. They enjoy the light form the highest levels.
Above those who already passed away and in a different levels in the Garden of Eden are those who come to this world and adhere to the ways of God. They follow the precepts, act with humility and concealment and study Torah days and nights. These people enjoy a level that is above all people. They are protected with high level of light that can burn those who come close to them.
In the world of Malchut we can connect to the level of Chokma, while those who passed away are more or less in a static state that is based on what they achieved while living in this world.
Those who are still living can ascend to the highest levels possible with their studies of the Torah, mostly through the study and Zohar and Kabbalah that are the highest levels of Torah studies.
Rabbi Shimon was know to be a righteous that no one come close to him without his permission. Men, angels and even the angel of death couldn’t come closer to him unless Rabbi Shimon allowed it (See Vayechi #148).
We are not Rabbi Shimon but with every study we can increase the Light of protection around us. It will push away negativity from us. All we need is to keep study every day and avoid all aspects of negativity.