Allah is so Loving and so Merciful, that when He wrote the rule book for allowing people to enter Paradise, He made it so that we could easily win even after great losses.
If you do a good deed, you will be rewarded as if you did 10 good deeds.
If you do a bad deed, it will be counted as one bad deed.
And if you repent from that bad deed, then it will be counted as one good deed.
Allah wants to see us in Jannah, subhanAllah, how Great is our Lord!