Yes there was Gods Law because the children of israel had been in egypt for 400 years God had to make it known to them.<quoted text> But where there is no law then there is no sin. We are given the definition of what sin is in Gods word and the definition says that sin is the transgression of Gods law and where there is no law ,then there is no sin. So according to your quote of James 4:17 then should wecall thisoneof those contradictions that some say the Bible is full of?
The consequences of sin his death. God til Adam and eve in the day you eat of the tree of knowledge you will surely die. At that point in time Gods law was made known to Adam and Eve.
(James 1:15 KJV) Then when lust hath conceived, it bringeth forth sin: and sin, when it is finished, bringeth forth death.