I have done this about twice. I have taken advantage if Christs gift

I have masturbated for about two days knowing that I will confess it in confession. I stopped this and after about two weeks have masturbated willingly and knew that I could ask for forgiveness afterwards and not do it again. this time I truly want to be born again and follow Christs teaching and live my life for God. if I repent and never do it again,Will god forgive me. I have been worrying about this for a week

this is what it means in Hebrews I saw,But have I gone beyond salvation and committed the unforgivable sin?
well, lets start by putting your mind at ease.. the bible does talk about the unpardonable sin.. but, you will never have to worry about committing it..
let me explain.. in order for you to commit the unpardonable sin. you certainly could not be a saved christian.. that particular sin is reserved for those that reject the Spirit.. right up to the point where it is to late..
the very fact that you are concerned is the evidence that the Lord is working in you.. and as far as the one that commits this sin. he doesn't even give it a second thought.. because they are anything but interested in the Lord..
does this make sense..
i always thought of the unpardonable sin as a catch 22.. in order to have committed it, you would not have known the fruit of the Spirit, and therefore would remain ignorant to the fact that you commited it..
people might say that you grieved the Spirit.. but, if you are covered in Christ's righteousness. then how is it possible to grieve Him.. He is our righteousness.. it is the responsibility of the Holy Spirit to sanctify us and make us Christ like.. remember we are like sheep.. and we all know that sheep are helpless and quite stupid.. they are also extremely stubborn.. but, there is an upside.. they are soft and fluffy.. lol.. and they do help us to learn to count.. one sheep.. two sheep.. three sheep.. etc....... lol.. seriously though, sheep will follow the voice of the shepherd.. and over time we will change.. it's been 23 years for me as a confessed christian, and i still wander..
anyhow, i also wanna add that you are not alone in feeling guilt and frustration from masturbation.. i am pretty sure that the majority of us struggle with this..
the important thing is the guilt and frustration you are experiencing.. this is grief.. and that is evidence that you are repentant..
i'm certain that every saved christian that masterbates, knows that they are willfully sinning against God..
remember that God views us differently that we view ourself.. He is only interested in the heart.. He sees your struggle.. more so, he payed for those struggles on the cross, in Christ Jesus.. so He feels what you are going through..
if God called you to repentance, He will certainly see it through to the end.. so stop beating yourself up over the physical struggles you deal with while in the body.. there are going to be many.. none of us are perfect... that is precisely why Jesus had to die.. to pay our debt to God..
satan just loves to steal our joy, by getting us to think that we have lost, or going to lose our salvation.. it's one of his favorite pranks.... but, the truth is.. we can never lose it.. if we could, then God would have never started the good work in us in the first place.. He is God.. He does not make mistakes to start with.. only to make corrections later.. that will never happen with the "never changing Ancient of Days".. last i heard God is Omniscient.. He knows everything, including the end result of what you will be..
i once had a man during an interview say to me, "dale(that's me

), you really are a diamond in the rough".. that was a long time ago.. boy was he wrong.. lol..lol.. just kidding.. you see, he saw something in me that even i didn't see.. maybe he saw the finished product.. when i think about that now.. i see how Christ is shaping me into a real gem.. the finished product... but, as far as the world can see. i am no different than the next guy.. oh i am sure that they see i am different.. but, not in a way that they can appreciate.. only the Lord could appreciate that.. after all He is the artist..
blessings brother.. you are not alone in these struggles.. there are times i just hate myself..
but, to have committed the unpardonable sin, and then worry that you did it.... that would be impossible..
again, if you did.. you wouldn't care..