Really? Who taught you that?
It wasn't God!
Proverbs 5: 7 Therefore hear me now, my children,
And do not depart from the words of my mouth.
8 Remove your way far from her,
And do not go near the door of her house,
9 Lest you give your [e]honor to others,
And your years to the cruel one;
10...