“Where does the law say you can only provide the punishment if you have not sinned?”
It doesn’t. Go back and read the entire context of my post to you.
I did read it. Both should have been punished and Jesus should have let her be stoned. He violated the law.