The only way Adam and Eve would have found out that they were naked is to believe the lies of the enemy. Satan told them, “Did God say ____?” and he got them questioning the character of God.a
The Law wasn't given to show you how to live right, the Law was given to show you that no matter what you did, no matter how hard you tried, you couldn't meet God's standards in your own efforts.