Some advice in Proverbs is pointed. Figurative language is used but the point made is hard to ignore, especially considering the author. King Solomon had 700 wives and 300 concubines. He knew a thing or two about women (1 Kings 11:3).
Though he was a great king and wise man, his heart was turned away from God to the idolatry of all his wives. He allowed their influence and their desire to rule in his life. So he turned away from the God whom he knew to be true and from the wise truth he spoke and wrote.