Discernment of spirits, includes recognizing both those that are Holy and those that are evil, in God's timing and according to his will. This gift of the Holy Spirit goes beyond flesh and blood, as do all of them. Note that I am not quoting the full Holy Spirit gifts in this passage below, so please read the full chapter when you can.
Here is a scripture verse that includes this gift of the Spirit: - - -

"1 Corinthians 12:10-12 "To another the working of miracles; to another prophecy; to another DISCERNING OF SPIRITS; to another divers kinds of tongues; to another the interpretation of tongues: But all these worketh that one and the selfsame Spirit, dividing to every man severally as he will. For as the body is one, and hath many members, and all the members of that one body, being many, are one body: so also is Christ." (NOTE: I placed large caps on the gift listed above, this video addresses.)

Spiritually discerning something in the spiritual realm, is not some super Charismatic or hyper Pentecostal belief. It is rather something the Holy Spirit guides us with, during our Christian walk, to keep us from being snared by Satan or having him place a stronghold on them. These attacks by the Devil, usually involve sin in one form or another but discernment often gives us an escape from entrapments. Jesus said this in one scripture regarding discernment - - -

"Ye shall know them by their fruits. Do men gather grapes of thorns, or figs of thistles? Even so every good tree bringeth forth good fruit; but a corrupt tree bringeth forth evil fruit. A good tree cannot bring forth evil fruit, neither can a corrupt tree bring forth good fruit. Every tree that bringeth not forth good fruit is hewn down, and cast into the fire. Wherefore by their fruits ye shall know them." (Matthew 7:16-20 KJV)

https://www.youtube.com/watch?v=OOvxQU0ZQeI

Author's Bio: 

I am a graduate of Liberty University (1996) for completion of theological studies (33 college credits) and I completed "Bible Survey" with Assemblies of God - Berean College. I consider myself a "Bapticostal" (a Baptist also having Pentecostal beliefs). Bible studies are one of my most-covered book subjects. I am, however, careful to only address those subjects I believe God has given me correct revelation on. I was a Christian Youth Minister, beginning in 1983 for approximately 18 years. During, between and after youth ministries I served in other church capacities as well, including interim pastoring and retirement home ministry. MOST IMPOTANTLY, I am a redeemed man, who has received salvation by acceptance of Jesus Christ.