God created all things out of love, and made humans as image bearers to tend to his creation. Out of love he did these things, fully knowing that humans were capable of turning away from God. Humans put themselves before God in the garden and by doing so brought evil into the world. The rest of scripture is God's good plan to turn the world right again, to expel evil from his good creation while also saving those whom bear his image that he loves. He does this by giving them the law to expose the sin of humankind, and sending the 2nd person of the trinity of God (Jesus) to fulfill the law. Jesus offered himself as a sacrifice to pay the guilt of the sins of humans. In doing so bringing true justice and mercy for the evil brought into the world. In his resurrection he conquered death (the ultimate punishment for evil, death is something that was never intended in God's good creation) and setting in motion the process of restoring the world, bringing about new creation in which Jesus is the first fruits. The world will be set right and all sin, evil, and tears wiped away.
(fixed some grammatical errors)
Out of love, God gave us the option to do things against him and be eternally damned?
So: all-powerful, all-knowing, all-loving. Pick two.
In our culture it is easy to think of this in terms of Dante's "Inferno", but that is a poem from the Middle Ages, and not in fact what the Bible tells us eternal separation from God looks like. Anyways, there is a lot of context to cover that isn't possible here. If you'd like to understand all of this better, go to the Bible, but then also perhaps consider "The Prodigal God" by Tim Keller. Blessings.
Maybe we just have drastically different ideas of what "love" is.
In any case, the problem of evil is not the showstopper some think it is [0][1].