God was establishing boundaries and his right to set those boundaries. Adam & Eve were given free will, so they could choose serve God, love him and worship him or not. They weren't serving him out of instinct or mechanically, much like the option we have NOW.