Pro 23:20 Be not among winebibbers; among riotous eaters of flesh:
Pro 23:21 For the drunkard and the glutton shall come to poverty: and drowsiness shall clothe a man with rags.
Pro 23:22 Hearken unto thy father that begat thee, and despise not thy mother when she is old.
Pro 23:23 Buy the truth, and sell it not; also wisdom, and instruction, and understanding.
Pro 23:24 The father of the righteous shall greatly rejoice: and he that begetteth a wise child shall have joy of him.
Pro 23:25 Thy father and thy mother shall be glad, and she that bare thee shall rejoice.
Pro 23:26 My son, give me thine heart, and let thine eyes observe my ways.
Pro 23:27 For a whore is a deep ditch; and a strange woman is a narrow pit.
Pro 23:28 She also lieth in wait as for a prey, and increaseth the transgressors among men.
We're still on gluttony at the start, and then it extols wisdom. Wisdom is contrary to gluttony and sexual sin (the last part).