Once upon a time Jesus was in a synagogue on the Sabbath; and there was a man with a paralysed hand. (Matthew 12:9–14).
Some people wanted to accuse Him of doing wrong and asked Him whether it is against their Law to heal (work) on the Sabbath.
Jesus asked them if any of them had a sheep which fell into a deep hole on the Sabbath whether they would rescue it. Then to prove His point, He healed the man with the paralysed hand.
So what is Jesus saying here?
Is He encouraging people to break one of the Ten Commandments?
Of course not.
Jesus is saying: Beware of those who would use God’s Word for their own ends. They would either take it literally or miss-quote it to suit their own argument and to their benefit.
God has given you a brain. Use it.
It is there to help you discern what is right and what is wrong. The Commandments are there to guide you through life. Not to be used by you and interpreted in such a way so that you can twist their meaning for your own selfish needs.