The context of John 8:3-11 is that they were trying to trap Jesus into going against Roman authority which held sway over decisions of capital punishment. If He supported her stoning under the Law of Moses, it would be used against him with the Romans. If He opposed the Law of Moses, He would be condemned as a heretic. It was a trap. He knew they were hypocrites since they let the adulterous man go, not the woman. His way out of the trap was to guilt those hypocritical men, saying they lacked moral authority to stone her to death.
Further, since very early versions of John don't include the story at all, there's some question about its authenticity: Is 'Let Him Who Is Without Sin Cast the First Stone' Biblical?
It's a few things to think about.
I don't accept that Jesus was twisting and turning just to get Himself off the hook. I maintain the believers' assumption that, as with "every word that comes forth from the mouth of God," there was a godly principle involved. See
#84.
If you want to delete this incident altogether --- put together an exacto-knife-edited version of the Gospels --- (sigh...) Welcome to The Jesus Seminar.