Stone the Child – I Fail to Understand the Cruelty

Deuteronomy 21:18-21

{21:18} If a man have a stubborn and rebellious son, which will not obey the voice of his father, or the voice of his mother, and [that,] when they have chastened him, will not hearken unto them:
{21:19} Then shall his father and his mother lay hold on him, and bring him out unto the elders of his city, and unto the gate of his place; {21:20} And they shall say unto the elders of his city, This our son [is] stubborn and rebellious, he will not obey our voice; [he is] a glutton, and a drunkard.
{21:21} And all the men of his city shall stone him with stones, that he die: so shalt thou put evil away from among you; and all Israel shall hear, and fear.

Malevolent deity, or maladjusted author?

I am a moral being. I value life.