It is a simple command in our Bible. I found this list of things that could possibly extinguish the Holy Spirit:
Love of the world
Anger, malice, revenge, unkind and unholy temper, hard thoughts, envy, censorious spirit, harsh language, uncharitable judgement.
Vanity, pride, love of dress.
Selfish ambition, rise in world for purely selfish reasons.
Indulging in an improper train of thought.
Drawing attention to self.
Indulging carnal lusts and affections.
Minding earthly things.
Disobeying the Word of God.
Neglecting to do good.
Not being willing to be and do what the Father chose, seeking solutions apart from his leading, treating Him with indifference, disregarding His teachings, ignoring His presence, rejecting His promptings, nullifying His power in your life, taking matters into your own hands, failing to completely yield to him