(If you eat, you will die... consequence, not punishment)
Not quite. There was no point in eating, unless it garnered some benefit. God "adorned" the tree, made it provocative. God made it provocative, but then put a warning up.
Go on, tell your son specifically not to draw on the wall with a crayon, and see what happens. Worse, if there is an older sibling doing it, watch how the younger one is tempted even more.
Maybe we need to learn things, rather than just having everything downloaded, so to speak. Just a thought.
Sure, learn first hand about a snake bite.