It always amazes me how often in the Bible the Pharisees are just looking for something that they can condemn Jesus for. They take their knowledge of the Bible so seriously, yet they don't put it into practice. That's not how we are supposed to live. Instead of looking down on others and condescending them, we should be constantly looking for ways in which we can build them up. That's what Jesus would do. Sometimes it's hard. I'll be honest, judging people and being prideful is one of the easiest things that we can do, and sometimes I don't even realize that I'm doing it, but it's definitely not how we should be treating others.
I love how Jesus always has a perfect response to the Pharisees, I just picture them with their mouths hanging open, speechless. The Pharisees were so obsessed over the idea of "not working on the Sabbath" that they even were furious with Jesus when he healed the man's shriveled hand. That's not how the Bible should be interpreted, you can't take everything completely literally, but the Pharisees just wanted to get some leverage on Jesus.
In verses 9-10, Jesus heals the man, and he poses a really good question:
9 "Then Jesus said to them, 'I ask you, which is lawful on the Sabbath: to do good or to do evil, to save life or to destroy it?'
10 He looked around at them all, and then said to the man, 'Stretch out your hand.' He did so, and his hand was completely restored."
Jesus knows that doing good is important and that if you live by everything literally, trying to be prideful, you won't get yourself anywhere.