Bereshit / Genesis 28:12 · Pshat
וַיַּחֲלֹם וְהִנֵּה סֻלָּם מֻצָּב אַרְצָה וְרֹאשׁוֹ מַגִּיעַ הַשָּׁמָיְמָה וְהִנֵּה מַלְאֲכֵי אֱלֹהִים עֹלִים וְיֹרְדִים בּוֹ׃
And he dreamed, and here, a ladder was set on the ground and its top reached the heavens, and here, angels of the Almighty were going up and coming down on it.
Pshat פְּשָׁט
First they go up
When you leave home, it seems that those who guarded you stayed behind. Rashi notices an odd order of words: the angels first go up and only then come down. And Ramban explains what Yaakov saw in this dream about how the world works.
Rashi draws attention to the order: the angels are "going up and coming down", not the other way round. So they were here with Yaakov (Jacob): the angels of the Land of Israel who escorted him do not leave it, they went up to heaven, and in their place came down the angels who will guard him outside the Land. Ramban sees the ladder as a prophetic vision: everything that happens on earth is done through the angels, but by the word of the Most High, and they go up to receive their orders. And the Eternal Himself stands over the ladder and promises that Yaakov will not be handed over to the angels: He Himself will be with him always.
How Rashi and Ramban explain it
Rashi Going up and coming down
First going up and afterwards coming down: the angels who escorted him in the Land of Israel do not go outside the Land, and they went up to heaven. And the angels of outside the Land came down to escort him.
Ramban And here, a ladder was set on the ground and its top reached the heavens, and here, angels of the Almighty were going up and coming down on it
He showed him in the dream of prophecy that all that is done on earth is done through the angels, and all by the decree of the Most High over them. For the angels of the Almighty, whom the Eternal sent to walk about the earth, will not do anything small or great until they return to stand before the Lord of all the earth and say before Him: "We have walked about the earth, and here, it sits in quiet", or "is full of sword and blood". And He commands them to go back down to the earth and do His word.
And He showed him that He, blessed is He, stands over the ladder and promises Yaakov a great promise: to let him know that he will not be in the hands of the angels, but will be the portion of the Eternal, and He will be with him always, as He said: "and here, I am with you, and I will guard you wherever you go". For his rank is greater than other righteous people, of whom it is said: "for He will command His angels concerning you, to guard you in all your ways" (Tehillim / Psalms 91:11).
And in the view of Rabbi Eliezer the Great (Pirkei DeRabbi Eliezer 35), this vision was like the vision to Avram between the pieces: He showed him the dominion of the four kingdoms, their rise and their fall. And this is the meaning of "angels of the Almighty", as it says in Daniel (10:13, 10:20): "the prince of the kingdom of Greece" and "the prince of the kingdom of Persia". And He promised him that He Himself would be with him wherever he went among them, and would guard him and save him from them.
They said there: the Holy One, blessed is He, showed him the four kingdoms, their dominion and their destruction. He showed him the prince of the kingdom of Babylon going up seventy rungs and coming down. And He showed him the prince of the kingdom of Media going up fifty-two rungs and coming down. And He showed him the prince of the kingdom of Greece going up one hundred and eighty rungs and coming down. And He showed him the prince of the kingdom of Edom going up and not coming down. Yaakov said to him: "Yet you will be brought down to the grave" (Yeshayahu / Isaiah 14:15). The Holy One, blessed is He, said to him: "Though you soar high like the eagle", and so on (Ovadyah / Obadiah 1:4).
Takeaway
The angels of the Land of Israel: by Rashi, the Land of Israel has its own guardian angels, and they do not cross its border. Yaakov spends the night at the last place before he leaves, so one group of angels goes up and another comes down to meet him.
"For He will command His angels concerning you" (Tehillim / Psalms 91:11): this is said of the righteous. Ramban says Yaakov is promised more: no angel guards him, but the Eternal Himself.
The four kingdoms: Babylon, Media (Persia), Greece and Edom (by the sages, Rome). These are the four exiles of the people of Israel. The sages link the numbers of rungs to the years each kingdom ruled: the seventy years of the Babylonian exile, and so on.