At the time Israel was not a sovereign nation. Some of the Laws were not in effect. There was no Sanhedrin with the power to exact capital punishment. There were no witnesses. What He did was disperse a mob that was acting outside of the commandments. It's a poor example of Him breaking the Torah. Any example would be poor since He never did.