God will do everything He can to protect you, but you have a part to play in protecting yourself. If you don't do your part to protect yourself and guard your heart, it doesn't matter what God does to protect you.
For example, in Numbers 22-24, Balak king of Moab wants to destroy the Israelites. So he hires Balaam to curse them. To protect Israel, God foils the plan of Balak and Balaam three times, making them unable to curse the Israelites. God did His part in protecting the Israelites.
But then in Numbers 25, we see that "[w]hile Israel was staying in Shittim, the men began to indulge in sexual immorality with Moabite women, who invited them to the sacrifices of their gods." (v1) So while God was actively protecting the Israelites from being cursed by Moab, the Israelites themselves actively went to the Moabite women. The Israelites joined the Moabites in worshiping their god, Baal of Peor, in a worship ceremony that involved sleeping with the Moabite women who were there. As verses 2-3 say, "The people ate the sacrificial meal and bowed down before these gods. So Israel yoked themselves to the Baal of Peor. And the Lord's anger burned against them."
What can we learn from this?
1. Sometimes we can nullify God's protecting and saving work in our lives by the dumb choices we make. God is trying to protect us from being cursed, but if we are not careful to guard our hearts, we will chase after the things that end up bringing a curse on our lives, the very things that God is trying to protect us from. In this way can render God's effort to protect us meaningless.
2. If you as a Christian become romantically or sexually involved with a non-Christian, you are yoking yourself (that is, joining yourself and attaching yourself) to that non-Christian and to whatever that non-Christian worships. If that non-Christian worships a demon spirit like Allah or Buddha, you're yoking yourself to that demon spirit. If that non-Christian doesn't believe in God but worships money, materialism, worry, their own ego, or some other lifeless idol, you as a Christian are yoking yourself to that idol.
For example, in Numbers 25, when God's people got sexually involved with the Moabite women, not only did they yoke themselves horizontally to the Moabite women. Even more, verses 3 and 5 say that God's people yoked themselves vertically to the demon spirit that the Moabite women were worshiping. That's why 2 Corinthians 6:14-15 says:
14 Do not be yoked together with unbelievers. For what do righteousness and wickedness have in common? Or what fellowship can light have with darkness?
15 What harmony is there between Christ and Belial [another name for Satan]? What does a believer have in common with an unbeliever?
It's no wonder God's anger burned against the Israelites in Numbers 25. After all that God did to protect them from the Moabites in Numbers 22 to 24, the Israelites themselves flocked to the Moabites and engaged in idolatry anyway.
That's why it is so dangerous and harmful to yoke yourself to someone who does not worship Jesus. It's like committing spiritual suicide.
So don't just call on Jesus to save you and forgive of your sins. Build your relationship with Him and guard against making choices that give Satan a foothold in your life. For God is here to protect you, but you have a part to play in guarding your own heart too. As Proverbs 4:23 says, "Above all else, guard your heart, for it is the wellspring of life."