So I’m wrong when I said that sin and evil were not allowed in the Garden of Eden? If so, why did Adam and Eve get kicked out? And why the snake got punished too? If sin and evil were permitted in the garden of eden, you’re saying God acted unjustly by punishing the whole lot of them.
You are not exactly wrong.
What I think is happening is that you are doing something like what I do when I first read a book. I open the book and read what is in the middle and then I go back to the beginning. Currently, I have a book on order which I will probably start at the front because I have read some interesting reviews. On the other hand, I may first find the sections that were referred.
The point is that it really does not matter how one approaches a book or the first three chapters of Genesis as long as one eventually puts its elements in proper order.
A lot of Genesis readers go straight to the fascinating snake in the grass. This snake appears to have lots of power especially when it comes to plopping sin and evil into a lovely garden. Then the head gardener (God) appears with thunder and lightening and throws everyone out. I made up the thunder and lightening part because the part where God looks for Adam (Genesis 3: 9-10) is exciting like a major rain storm. Unfortunately, many readers get somewhat stuck in chapter 3 and then claim that God is unjust or at the least not capable of keeping the snake out. This is not the whole story.
The observant author of the first three chapters of Genesis puts the existence of God first. (Genesis 1: 1) What follows is that God sees creation as good. (Genesis 1: 25) Why? because God the Creator is good.
At this point, we need to turn to the Catholic teachings about angels. (CCC 391-395) Practically speaking, it is difficult to describe angels in material words. Thus, the author pictured Satan as a snake. That is what is meant by “figurative language.” If a reader is curious, I suggest reading CCC 374-379 and CCC 386-387. If a reader is really, really curious, I suggest reading CCC 355-421). This is not a page-turner.
Once a reader accepts the goodness of God, even if that is hard to do, one is ready to explore how Genesis 1: 27 united both the material and spiritual worlds into one amazing creature known as man, that is, Adam who is capable of a serious love relationship with his Creator. (CCC 1730-1732) God’s love for the human Adam is illustrated in Genesis 2: 8-15. It does not matter if one considers this part figurative. Either figurative or literal interpretations demonstrate God’s love for Adam and subsequently all humankind. Genesis 3: 8 refers to the Lord God moving about in the garden at the breezy time of the day. When I consider that a Pure Spirit Creator is a tad difficult to describe in human’s material language, I think about the fact that God can interact with His human creatures.
I am going to take a break here and let readers point to Genesis 3: 15 as God’s ultimate love.(CCC 410-411)
Also there is now real thunder and lightening at my window.
Links to the universal
Catechism of the Catholic Church, Second Edition
usccb.org/beliefs-and-teachings/what-we-believe/catechism/catechism-of-the-catholic-church/
scborromeo.org/ccc.htm
vatican.va/archive/ENG0015/_INDEX.HTM