I hope this will help you. The Bible speaks of the gifts of the Spirit in 1 Cor. 12:10 etc, and one of those gifts is 'discerning of spirits'.
Original Language Definition The Greek word for "discernment" here is "diakrisis" which, according to Vines' Expository Dictionary (p. 171), means "a distinguishing, a clear discrimination, discerning, judging... of spirits, judging by evidence whether they are evil or of God.
I do not see a reason why this particular gift should not be desired.