Jehovah God surely wanted that people would not die. But every person has to show if they want to follow God's reasonable rules.
Genesis 2:15 Jehovah God took the man and settled him in the garden of Eden to cultivate it and to take care of it. 16 Jehovah God also gave this command to the man: “From every tree of the garden you may eat to satisfaction. 17 But as for the tree of the knowledge of good and bad, you must not eat from it, for in the day you eat from it you will certainly die.”
Isiah 55:11 So my word that goes out of my mouth will be. It will not return to me without results, But it will certainly accomplish whatever is my delight, And it will have sure success in what I send it to do.