That Someone did not forbid capital punishment. Since it was (is) already in the Law, and He did not countermand it, it is still in effect.
That Someone said to the perpetrator of a capital crime, “I don’t condemn you.” He could say that becasue he was about to take her and everyone else’s punishment upon himself for all time.