Proverbs 22:5 in the King James Version
Thorns and snares are in the way of the froward: he that doth keep his soul shall be far from them.
Context
4 The result of humility and the fear of the LORD is wealth, honor, and life.
5 Thorns and snares are in the path of the wicked; whoever guards his soul stays far from them.
6 Train up a child in the way he should go, and when he is old he will not depart from it.