I think it's just the opposite: The fact that you are trying means Hashem is looking to help you. Haba litaher misaye'in oso (Shabbos 104a).
Don't view challenges as Hashem trying to stop you because of your sins. Instead, Hashem is helping you reach greatness! You just have to know how to look.
From the Battle of the Generation, Chapter 1 (download here: guardyoureyes.com/ebooks/item/the-battle-of-the-generation?category_id=149">guardyoureyes.com/ebooks/item/the-battle-of-the-generation?category_id=149 ):
There is a little secret the yetzer hara doesn’t want you to know. It’s the secret that spells his doom. And it’s the secret that will change your destiny.
Our generation faces challenges never encountered before by mankind. Society teaches that there is nothing wrong with immorality, and it portrays the most despicable acts as glamorous. Promiscuity is made to seem exhilarating. We are taught that chasing desire is cool, and that those who don’t are losers who are missing out on life. Sin is readily available, and there is little to hold us back.
Society also trains us to think we are incapable of controlling ourselves. We see everyone around us giving in to crazy temptations, and we think it is impossible to win. We might even hear people openly express how impossible a fight it is, which discourages us from even trying. With all that’s going on, our generation seems to be at a huge disadvantage. It seems that we were born in perhaps the worst situation in the history of our nation, at least from a spiritual perspective.
But that’s only if you ignore the yetzer hara’s secret. . . .
In Pirkei Avos (5:26), Ben Hei Hei teaches us that Heavenly reward is meted out in accordance with how much a person exerts himself. Our Sages teach us that this is a major principle in the calculation of reward and greatness. How hard a person works to accomplish something is one of the primary determining factors in how great the accomplishment is. When a person faces overwhelming challenges and overcomes them, he performs acts that are truly great.
Overcoming difficulty is so basic to true accomplishment in life that it is the reason Hashem places man into a life so full of challenges (Mesillas Yesharim, Chapter 1). Hashem wants to provide man with the opportunity to win his battles and truly accomplish. Challenges are only there to make us great! Succeeding despite the difficulty is the point of life! The harder it is, the greater it makes us.
If Hashem hadn’t created us with the urge to do wrong, and all we wanted to do was to learn Torah and do mitzvos, acting properly or even reaching lofty levels would be no big deal. Our successes are impressive only because the yetzer hara challenges us from every direction, trying to confuse and derail us. When we hang in there and try to succeed despite how much we want to give in, we are performing monumental acts of greatness. . . .
When we feel overwhelmed, we must realize that this gives us an opportunity to attain unprecedented merit. The more challenges we face — whether they were given to us entirely by Hashem or whether we brought them upon ourselves — the greater our opportunity for achievement. The lower a person’s spiritual level, the greater he can become. The deeper he has sunk, the higher he can reach. Granted, it is not so easy to change our lives and to overcome strong desires, but if we do, we become men of phenomenal accomplishments. We will reach astounding heights and score victories that others, even many great tzaddikim, did not attain because they never faced such challenges. Our challenges, while difficult and humbling, are also opportunities for us to reach unprecedented greatness!
We hear over and over how terrible our generation is and how much decadence lurks around us. Everyone seems to either look down on us or feel bad for us for having been born now. But if we are here at this time, that means that Hashem put us here, and it wasn’t by accident! Why did He give us these challenges? Why were we born in this generation?
By now, the answer should be obvious: Hashem put us here to give us the opportunity to accomplish something that was never done before. By succeeding despite the challenges that bombard us daily, we reach monumental greatness. Of course, we will have to work harder to succeed than any prior generation, but it is worthwhile because we will be great forever. It is not supposed to be easy. Life is meant to be challenging! That enables us to attain accomplishments that are truly impressive. Accomplishments that aren’t achieved in the face of difficulty, even if they look good on paper and are lauded by society, pale in comparison with these real accomplishments.
Our challenges are our opportunity to reach phenomenal heights! Reaching greatness through fighting valiantly in this difficult battle is the destiny Hashem has chosen for us! This is why Hashem gave us such difficult challenges.
We must realize that these challenges mean we can do what has never been done before in history. These are challenges and opportunities that Hashem has trusted only our generation with. If we can succeed despite what lures us to do wrong, we will achieve unmatched success.