A quiz from Genesis to the Giving of the Torah

Why did God forbid Adam and Chava to eat from the Tree of Knowledge?