The law makes us conscious of sin and causes fear in our hearts when we are caught in the act. We become afraid of the punishment accorded to the sin we committed and feel ashamed and worthless because the sin will be made known to all. The law, however, reveals sins; it does not convict sin.
The story of the woman caught in adultery can be likened to the vilest offender her accusers thought could never receive a pardon. This account is in John 8:1-12. The scribes and Pharisees must have watched her closely and knew about her promiscuity before the day her act was openly revealed. They always looked for a fault in Jesus and the only way to achieve their goal was to test Him using every opportunity available.