To be honest, I knew what sin was before I knew what the 10 commandments were, or before I was saved. I didn't know what it was, but I knew something was wrong. That's what made me hunger and thirst for righteousness. So it wasn't the law that convicted me of sin, but the holy spirit. When I believed and read the law then I had more clarity. Once I saw what the greatest law is, I saw clearly.