"And he stood in a narrow place" (Numbers 22:26) — corresponding to Jacob, of whom it is said, "And Jacob was greatly afraid and was distressed" (Genesis 32:8). "Where there is no way to turn right or left" — this teaches you that since he comes to curse the seed of Jacob, who are all righteous, he could not prevail against them, for he has no permission to curse them.
The Angel in the Narrow Place and the Righteous Seed of Jacob
Midrash Aggadah, Numbers 22:26
ויעמוד במקום צר. כנגד יעקב, שנאמר בו וירא יעקב מאד וייצר לו (בראשית לב ח): אשר אין דרך לנטות ימין ושמאל. ללמדך אחר שהוא בא לקלל זרעו של יעקב כולם צדיקים, לא יכול להם שאין לו רשות לקללם: