It is not true that the law gives us "knowledge of what sin is". Eating from the tree of the knowledge of good and evil did that. On the contrary, the law teaches those who read it that God sees their sins, does not like it, has declared them guilty, and has condemned them to eternal death...