Now, before the cursing of the Serpent, the Serpent didn't walk: he lived in the waters.
So the Lord God said to the serpent, “Because you have done this,
“Cursed are you above all livestock
and all wild animals!
You will crawl on your belly
and you will eat dust
all the days of your life
“Cursed are you above all livestock
and all wild animals!
You will crawl on your belly
and you will eat dust
all the days of your life
(Genesis 3:14)
After the cursing, the Serpent will live on the earth. The earth will become the "Promised Land" of the Serpent. Insofar the OT Joshua is son of Nun (=Nahash = Serpent), the his implicit fate will be to conquer the earthly Promised Land: Canaan.
The Serpent was anathemized. The son of the Serpent (=Nun = Nahash), Joshua, will be rehabilitated. But the adorers of the Serpent as supreme god were anathemized as adorers of a mere Jesus Bar-Abbas ("Jesus Son of Father").