Discernment is a fundamental ability which proceeds from Wisdom. When God is acknowledged, the Foundation for Wisdom is laid.
Supernatural Wisdom is a Gift of the HolySpirit.
Discernment of Spirits is a Gift of the HolySpirit.
We Need both Discernment and Wisdom to Minister properly.
In order to not be Deceived we need the Gift of Discernment.
To another the working of miracles; to another prophecy; to another discerning of spirits; to another various kinds of tongues; to another the interpretation of tongues: -
1Co 12:10
But the natural man receives not the things of the Spirit of God: for they are foolishness unto him: neither can he know them, because they are spiritually discerned. -
1Co 2:14