You may be reading a bit too quickly.
Many follow the God of the Bible while still believing that He sent a genocidal flood. I do not follow this God. My God comes out of the same book but does not need to resort to killing people.
A good law maker will not break His own laws.
I believe God to be perfect and to do perfect works.
Deuteronomy 32:4
He is the Rock, his work is perfect: for all his ways are judgment: a God of truth and without iniquity, just and right is he
I do not read the Bible literally bit this quote is a logical extention of what a God would be and do.
God may have been in the garden but if He were to teach Adam and Eve good and evil then the tree of knowledge would not be needed. So to say that God taught them this information would be wrong.
If the already knew it then whey cast them out for eating what they already knew. Illogical.
Regards
DL