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)