Sin originated in the Garden of Eden. In the Garden of Eden, both Adam and Eve were made in perfection. Though perfect in mind and body, God established the first moral boundaries, what is right and wrong, by telling Adam and Eve that "from every tree of the garden you may eat to satisfaction, but as for the tree of the knowledge of good and bad you must not eat from it, for in the day you eat from it you will positively die."(Gen 2:16, 17)
Because they partook from the "tree of the knowledge of good and bad", they lost their perfection and became worthy of death, returning to the same state of non-existence as before their creation.(Gen 3:19) All of the fruit trees of the garden of Eden were free to eaten from, with the exception of the "tree of the knowledge of good and bad" that was excluded by God as one that was forbidden to even touch, by right of his Creatorship. Adam and Eve now became sinners, having crossed the moral boundary established by God after having been warned by him of the consequences. The apostle Paul wrote that "through one man (Adam) sin entered into the world, and death through sin, and thus death spread to all men because they had all sinned."(Rom 5:12)
Sin is from the Hebrew word chat·tath´ and in Greek, the usual word is ha·mar·ti´a. In both languages the verb forms (Hebrew, cha·ta´; Greek, ha·mar·ta´no) mean miss, in the sense of missing or not reaching a goal, way, mark, or right point. At Judges 20:16, cha·ta´ is used, with a negative, to describe the Benjamites who were slingers of stones to a hairbreadth and would not miss. Following their eating of the "tree of the knowledge of good and bad", Adam and Eve became imperfect, ' missing ' the mark of perfect obedience to God.
Greek writers often used ha·mar·ta´no with regard to a spearman missing his target. Both of these words were used to mean missing or failing to reach not merely physical objects or goals,(Job 5:24) but also moral or intellectual goals or marks. Proverbs 8:35, 36 says the one finding godly wisdom finds life, but the one missing [Hebrew, cha·ta´] me (wisdom) is doing violence to his soul, leading to death. In the Scriptures both the Hebrew and Greek terms refer mainly to sinning on the part of Gods intelligent creatures, their missing the mark with regard to their Creator.
Thus, sin is anything not in harmony with, hence contrary to, Gods personality, standards, ways, and will; anything marring ones relationship with God. It may be in word, as David said: "I will guard my ways to keep from sinning with my tongue." (Ps 39:1), in deed (doing wrong acts), as at Leviticus 20:20, in which it says that "a man who lies down with his uncle's wife has laid bare the nakedness of his uncle.They should answer for their sin", or failing to do what should be done, such as a "man who was clean...and neglected to prepare the passover sacrifice, that soul must then be cut off....For his sin that man will answer",(Num 9:13) or in mind or heart attitude, for Proverbs 21:4 says that "haughty eyes and an arrogant heart, the lamp of the wicked ones, are sin."
Hence, God, by right of his sovereignty, established what is right and wrong. And he is the one we all will ultimately answer to. At Deuteronomy 30:19, through Moses, God told the nation of Israel, that "I have put life and death before you, the blessing and the malediction; and you must choose life in order to keep alive, you and your offspring."