Our LORD has made it perfectly clear, that we are not to "tempt" HIM. The supporting Scriptures are Deut.6:16, and Mat.4:7. Let's look at John 8:4-10. A serious set-up.
"Master" - a disrespectful title. "Woman" - is key: she was an adult, married women. "Such are to be stoned" - which is a lie.
They were "Tempting" the LORD: which is a no-no.
The conversation was a set-up for Christ's murder. Satan was a Scripture-lawyer, and so are It's children.
A women involved in adultery, was to appear before the priest, with her husband (Numb.5:11-31). She would have the opportunity to confess, or deny: and the LORD would JUDGE.
Stoning was for a damsel (Deut22:24), virgin, betrothed. These Hypocrites (Fakes) had no clue that they were "Tempting" the very ONE that gave the Law to Moses.
Christ stooped and wrote on the ground - enough that convicted these self-righteous-idiots. They came to condemn Christ to murder, and the woman, an illegal stoning. They left feeling guilty: because they were guilty.