Mark 3:5 And when He had looked around at them with anger, being grieved by the hardness of their hearts, He said to the man, “Stretch out your hand.” And he stretched it out, and his hand was restored as whole as the other.
Each time Jesus faced the religious crowd, this time in the synagogue, He had to contend with them and their version of the laws.
Jesus wants us to know His law but to apply it properly into our lives; this is why He personally said that the most important laws were to love God and people.
Not doing something just because someone else says it is frowned upon does not make it right. Following God and His ways is what we should be focusing on.