Why would god command his jews to stone people to death for trivial causes?

Such as adulterous sex , blaspheming and other silly things? Come on , where is the forgiving loving god?
Beware i am reffering to the Old Testament , i know it was an old law or something , But come on
You don't order painful death of your creation just for giving into lust once , right?
11 answers 11