Yes it is wisdom because wisdom teaches that those who worship GOD, but don't do the will of GOD will be lost.
“Not everyone who says to me, ‘Lord, Lord,’ will enter into the kingdom of heaven, but the one who does the will of my Father who is in heaven. Matthew 7:21
Those who worship GOD without doing his will are violating the 3rd commandment.
You shall not take the name of [the] LORD your God in vain. For no [way] shall [the] LORD cleanse the [one] taking his name in vain. Exodus 20:7
So [Jesus] said to them, “Isaiah prophesied correctly about you hypocrites, as it is written, ‘This people honors me with their lips, but their heart is far away from me. And they worship me in vain, teaching [as] doctrines the commandments of men.’ Mark 7:6-7