Grace does not excuse you from your sin or give you the freedom to do what you want. Grace is what the Lord gives to the humble that allows that person to do what is right. In the Bible grace was a blessing that came before or after the commands of what the Lord wants His people to do or be.
James 4:4-6 You adulteresses, do you not know that friendship with the world is hostility toward God? Therefore whoever wishes to be a friend of the world makes himself an enemy of God. Or do you think that the Scripture speaks to no purpose: “He jealously desires the Spirit which He has made to dwell in us”? But He gives a greater grace. Therefore it says, “God is opposed to the proud, but gives grace to the humble.”
Grace is not something that we give ourselves when we mess up and sin. God gives grace to the humble and His grace is what enables us to not be crushed by our guilt but to be able to get back up and do what He has called us to do. God gives grace to the humble. Humility is confessing your sin to the Lord and your need for Him. Grace allows us to be faithful to the Lord so that we will not be called an adulteress by our flirting with and friendship with the world. He gives a greater grace than what the world has to offer. Grace is what sets you free from your bondage to sin.
Ezra 9:8 But now for a brief moment grace has been shown from the Lord our God, to leave us an escaped remnant and to give us a peg in His holy place, that our God may enlighten our eyes and grant us a little reviving in our bondage.
You were in bondage to sin before you became a Christian. He saved you from your sin and sins and the consequences of them. Your sin is your desire to be your own god and the sins are all of the snares that you became caught in by trying to be your own god.
Ephesians 2:8,9 For by grace you have been saved through faith; and that not of yourselves, it is the gift of God; not as a result of works, so that no one may boast.
Again, our redemption is through His blood and forgiveness of our sins, according to the riches of His grace towards us. God is gracious towards us because of what Christ did on the cross. He took our sin.
Ephesians 1:7,8a In Him we have redemption through His blood, the forgiveness of our trespasses, according to the riches of His grace which He lavished on us.
Grace increases when we sin. This means that there is nothing that is beyond His grace to allow you to come back to Him. His grace is what allows us to come back when we have fallen so that we can be restored in our fellowship with Him.
Romans 5:20,21 The Law came in so that the transgression would increase; but where sin increased, grace abounded all the more, so that, as sin reigned in death, even so grace would reign through righteousness to eternal life through Jesus Christ our Lord.
Grace reigns through righteousness to eternal life. Eternal life is knowing the Lord. If you are growing in grace then you will be growing in the knowledge of Jesus Christ as your Lord and Savior.
John 17:3 This is eternal life, that they may know You, the only true God, and Jesus Christ whom You have sent.
Grace is with those who love the Lord Jesus Christ with a pure love. A love that obeys Him and keeps His commandments.
Ephesians 6:24 Grace be with all those who love our Lord Jesus Christ with incorruptible love.
Are you growing in grace and in the knowledge of our Lord? Is your love for Him incorruptible and pure? Or are you still struggling with friendship with the world? He loves you and jealousy desires the Spirit that He has made to dwell in you. Ask the Lord to help you be faithful to Him. Put yourself around Christians who love Him rather than the world. The Lord will help you and give you more grace to be faithful to Him if you will humble yourself before Him.