His enemies accused Jesus of breaking the Law. But whose Law? Jesus kept God's Law perfectly. He did not follow or keep all of the additional laws added by the religious leaders of Israel. Touching the man with leprosy would have made Jesus "unclean" in the eyes of the legalist, but Jesus was clean. Healing people on the Sabbath was against their laws, but Jesus' compassion moved Him to help and heal people on the Sabbath.
When it came to allowing the man cured of leprosy back home and into his community, Jesus told him to obey the Law of Moses. Jesus came to fulfill the Law for us. Jesus also teaches us that we should obey God. But we should not obey human laws that violate God's Law.