Protection from Deception

How can we know what is a work of the Spirit and what is counterfeit? If we know the Holy Spirit's nature we won't be easily deceived.