Intertwined serpents was a symbol of the Sumerian god Enki, that's probably where it was first associated with wisdom.