E.g. Romans 5. Sin (transgression in this case) abounds when the law is given. Transgression appears to not just include doing wrong, but having knowledge of the law that is being broken. Also look at Romans 2.
Though there can be disagreement on this, I’m just referencing standard hamartiology. See for example: Presumptuous Sins and Sins of Ignorance There is a difference between doing wrong in ignorance, and knowledgeably breaking God’s law in rebellion.
That means that God’s work to reveal His law actually multiplies and increases transgresion, by placing us in view of the law we will then chose to break. Without the law, we would be less accountable, because our hamartia (sometimes used to mean “missing the mark”) would be due to will ignorance alone, not rebellion.
So why would God reveal the law then, if it multiplies transgression?
Romans tells us. So that we would know our sinfulness. The law does not make us righteous, but it makes clear that we fall short. It’s role is to make us aware of our hamartia, that we might be ready to receive righteousness by faith in Jesus.
I’ve written about this several times. Here is my response to @Relates from quite a while ago. That’s just the first example I found when I searched. This not to pick on him, as many people in the origins conversations make this same mistake.