Interesting topic.
We are told sin is the transgression of the law 1John3:4 where there is no law, there is no sin. Rom4:15 So God's laws must have existed in Eden.
Gen 3:6 When the woman saw that the tree was good for food, and that it was a delight to the eyes, and that the tree was...