(Shout out to Scott Sengbush for bringing these verses to my attention.) Earlier this week I did a video called "Is God unrighteous? Absolutely not!" And it examined four set of verses from the Old Testament that many skeptics or atheists may use to actually try to "prove" God is unrighteous. These verses could also fall into that category because it talks about a man being stoned for just picking up sticks. But it is much more than that because the context and the reason is actually justified by God.

Here is the original video that actually goes over verses that skeptics/atheists may use to "prove" God is unrighteous. It explains the verses and it shows how we should respond:
https://youtu.be/G3TEyIhRM5A