Let us hear the conclusion of the whole matter: Fear God, and keep his commandments: for this is the whole duty of man. For God shall bring every work into judgment, with every secret thing, whether it be good, or whether it be evil.
There it is. Simple enough? Well it is simple to understand, but it leaves the world in a predicament. You see the Bible also says "...sin is the transgression of the law" (1 John 3:4). God's law (the 10 Commandments) says do not lie, it says do not steal, it says do not use the Lord's name in vain, it says do not commit adultery (Jesus said lust is adultery - Matt 5:27,28), it says do not murder (and the Bible says hatred is murder - 1 John 3:15) - and these are only 5 of the 10. The Bible also says "whosoever shall keep the whole law, and yet offend in one point, he is guilty of all" (James 2:10) And "If we say that we have no sin, we deceive ourselves, and the truth is not in us" (1 John 1:8).
Just as Ecclesiastes stated, it is repeated in Hebrews 9:27 "And as it is appointed unto men once to die, but after this the judgment"
And at the judgment, what we earn because of our sin is death (the second death) "For the wages of sin is death..." (Romans 6:23a) And "But the fearful, and unbelieving, and the abominable, and murderers, and whoremongers, and sorcerers, and idolaters, and all liars, shall have their part in the lake which burneth with fire and brimstone: which is the second death" (Rev 21:8)
This leaves us pretty much hopeless - except that God made a provision for us "But God commendeth his love toward us, in that, while we were yet sinners, Christ died for us." (Romans 5:8) and in doing so "the gift of God is eternal life through Jesus Christ our Lord" (Romans 6:23b)
What should you do?
That if thou shalt confess with thy mouth the Lord Jesus, and shalt believe in thine heart that God hath raised him from the dead, thou shalt be saved. For with the heart man believeth unto righteousness; and with the mouth confession is made unto salvation.
You broke God's law, Jesus paid your fine.
Repent and put your faith in Him.He gave His life, to offer you life, if you'll surrender your life.