In contrast to the evil (and, thus, more traditionally Biblical) representation of snakes, the snake in The Little Prince doesn't initially appear as a sinister creature to the Prince (although the narrator certainly isn't quick to warm to its appearance!). The snake and the Prince seem to have respect for each other, and the creature quickly demonstrates that he is wise and powerful. However, he also reveals in time that he poses a danger, for those who touch him are transported elsewhere, and he chooses to speak only in riddles.
Thus the snake is symbolic of risk; for the Prince to decide to take the snake up on his offer to return him to his home on Asteroid B-612, the Prince must assume an enormous risk. He cannot be sure that the snake is telling the truth or even that he will deliver on his offer in the way that is expected. When the snake claims that he returns those who touch him to the "earth from whence [they] came," he could be speaking literally or figuratively (implying death).
The Prince ultimately must place faith--which is, in a way, an incredible final act of love--in the snake in order to go home.
The snake represents several things in "The Little Prince". From a Biblical perspective, the snake represents the evils of the world, which are unknown to the Little Prince. The Little Prince had not been on the Earth long enough to experience the evils of man; he landed in a desert where these evils would not exist. The pilot was the only human he encountered on Earth, and the pilot displayed no evil towards the Little Prince.
The snake was also very persuasive, and upon learning of The Little Prince's desire to return to his asteroid to see his rose, and alleviate his being homesick, the snake offered him a way to return home. The snake was the only means for The Little Prince to return to his asteroid, according to the snake. The snake was The Little Prince's "transportation" to his little asteroid and his beloved rose.
The snake also represents death. Because of the Little Prince's desire to return to his beloved rose, he makes the decision to allow the snake to take him there. The Little Prince did not understand the explanation of the snake's means of transportation, and as a trusting little child would do, he allowed the snake to bite him, not knowing that the snake would take his life in the process.