Claiming ‘God forgives me’ does not excuse us from the legal consequences of our actions.
Quick test: Do your actions help or hurt others?
If our actions hurt anyone, they require us to answer for them. Depending on the severity of our actions, that might involve the court of law. Claiming ‘God forgives me’ does not remove our legal responsibility nor the obligation by society to give us consequences.
Only when our actions help others, even when they are against the law of the land (like Christians hiding Jews in Nazi occupied territory during WWII), then we can say the law is unfair and we shouldn’t experience the consequences we face.