Proverbs 4 commends wisdom and insight, while strongly warning against taking a path of evil:
and do not walk in the way of the evil.
Avoid it; do not go on it;
turn away from it and pass on.
For they cannot sleep unless they have done wrong;
they are robbed of sleep unless they have made someone stumble.