Proverbs 22:5

Amplified Bible (AMP)

Thorns and snares are in the way of the obstinate [for their lack of honor and their wrong-doing traps them];
He who guards himself [with godly wisdom] will be far from them and avoid the consequences they suffer.

Read Proverbs 22:5 in other translations