When you quench a fire, you put out the fire. When you quench your thirst, your thirst goes away. The word “spirit” here could refer to the Holy Spirit, or one’s own personal spirit. Either way, spirit is the source of all things spiritual. So the basic meaning of the command is not to put out the source of all things spiritual.