The tree was the tree of knowledge. They had no way of knowing that eating from it was bad. Then god decided because they were convinced by one of his creations to eat from it, he would burn everyone forever. It says that Yahweh is a complete idiot, evil, or both, if he even exists

