If he disagrees with Moses, then the Pharisees will have a basis for accusing him in front of the people and the Jewish religious leaders. If he confirms what Moses said, then the life of this woman would be somehow at risk and also his own mission to save sinners.
6 This they said to test him, that they might have some charge to bring against him. Jesus bent down and wrote with his finger on the ground.