It's a tough subject, but here are a few tidbits that come to mind:
There was God's law prior to Moses/Sinai. Because that Abraham obeyed my voice, and kept my charge, my commandments, my statutes, and my laws. Gen 26:5
(God to Cain) ... sin lieth at the door. And unto thee shall be his...