The talking snake most likely refers to a very-knowledgeable snake-people Nagi and their king Dagon. They supposedly lived 12 thousand years ago and had skills and knowledge deemed magical by laymen. India is probably the only nation old enough to have records of that period. "Be wise like a serpent" means "be wise like nagi".