Ben Sira 19:22

22 You may know everything there is to know about wickedness, but that does not make you wise. It is not sensible to follow the advice of sinners.

Ben Sira 19:22 In-Context

20 Fear the Lord and keep his Law; that is what Wisdom is all about.
22 You may know everything there is to know about wickedness, but that does not make you wise. It is not sensible to follow the advice of sinners.
23 It is possible to use cleverness for wicked purposes, but some people act like fools because they don't know any better.
24 A devout person, even if he is not very intelligent, is better off than the cleverest of sinners.
Scripture taken from the Good News Translation - Second Edition, Copyright 1992 by American Bible Society. Used by Permission.