When God created Adam, the very first human, God knew that he was going to sin.
God knew about the generations of sin that would follow.
He knew about every bad thing that would happen.
He knew about all the pain.
He knew about every tear that would be shed.
He knew about all the hopeless nights.
He knew about everything.
Yet the day he made Adam, and thus allowed for all of us to follow, God said that everything he had made was good. He said that you and I were good. He loved us even then.
So why, if even God thought we were worth it despite all the bad, do we think were not good enough? God could have easily just not made Adam. But he didn't. He made Adam because he wanted the chance to get to know you and me. He wanted us to have the chance to know him and love him.
Because despite all the evil that came into the world, God gave us so much to enjoy and his grace to keep us going. He wanted the chance for you to love and be loved and no failure, sin, or anything you do can make him not love you.