Here is Jesus speaking to the crowds: "Therefore I say to you, any sin and blasphemy shall be forgiven men, but blasphemy against the Spirit shall not be forgiven." (Matthew 12:31)
"This is a solemn study, because the Holy Spirit is God and can be sinned against by both the believer and the unbeliever May He help you search your heart as you consider:
1) The sin of blaspheming the Holy Spirit is committed by unbelievers. It is often called the unpardonable sin. It has no forgiveness. It was committed by the enemies of Jesus when they accused Him of casting out demons by the power of Satan. (Matthew 12:24) when Jesus claimed to cast them out by the Spirit of God. (Matthew 12:28)
2) The sin of resisting the Holy Spirit is committed by the unbeliever when rejecting Jesus Christ as Savior and Lord. (Acts 7:51)
3) The sin of grieving the Holy Spirit is committed by believers. He is grieved by us unless He controls our lives to the glory of Jesus Christ. (Ephesians 4:30-32)
4) The sin of quenching the Holy Spirit is committed by Christians when known sin is allowed to go unconfessed. (1 John 1:9)
5) The sin of lying to the Holy Spirit was the sin of Ananias and Sapphira and was deception, born in jealousy. They tried to mock God (Galatians 6:7).
The Holy Spirit can be sinned against because He is God."
Please Note: Only the sin of blaspheming the Holy Spirit is unforgivable. However, due to the example of Ananias and Sapphira, I think that trying to lie to the Holy Spirit would be very dangerous!
Let us pray often to avoid all these sins against God's Holy Spirit and welcome always His work in our lives.
God be with you always in the Holy Spirit and bless you in Jesus name.