God never said he would die the moment he/she ate it(Genesis 2:17, Genesis 3:3). Death was something that didn't exist in the garden of Eden, before the fall of man. Sin and death came after they ate of the fruit in the garden.
"It says he made us all to be just like him. So if we're dumb, then god is dumb, and maybe even a little ugly on the side." -- Frank Zappa