In eating the fruit, the intention was to achieve knowledge of good and evil, and thus have God’s vision. In this way Adam and Eve were trying to rival God.