Could you please tell me:
* What version of the story are you referring to? Is it a specific book, movie, or folklore tale?
* What are the key elements of the story? Who are the man and serpent, and what happens to them?
Once I have this information, I can help you identify the moral lesson of the story you're interested in.