’s flash back the memory when I having bad thoughts and I trying to resit that bad thought,after having resit that bad thought in my mind I afraid of committing the unpardonable sin,I feel guilty and fearful I don’t know what to do,t
Yes we can and will pray but you should also understand what you are going through as well.
Friend one can never stop thoughts from entering into our mind.
That's why we are told in 2 Corinthians 10:5
Casting down imaginations, and every high thing that exalteth itself against the knowledge of God, and bringing into captivity every thought to the obedience of Christ;
Imaginations Are Thoughts
Don't fear the thoughts and don't give life to them.
To give life to a thought is Acting on them by Saying them and or doing them.
Unpardonable Sin is Rejecting Christ.
Fear, Worry and panic are traits the evil one is using to destroy you.
Stop the Fear and Believe what God's Word says.
1John1:9
If we confess our sins, he is faithful and just to forgive us
our sins, and to cleanse us from all unrighteousness.
Do this and Get Over It.
Cast down those lies (thoughts) the devil is filling your head with and Refuse to allow this fear and worry to hinder you anymore.
It's up to you to do this and not God.
Blessings to you