Trusting In Spite of Evil - Gospel of John

During one of Jesus' last conversations with his disciples before they would have the ultimate reason to abandon their faith in God, he encouraged them to trust the architect of the tension between good and evil; to trust the mastermind of the mystery that plagues each one of us.  Why does God allow such levels of evil while he is all the while advancing his purposes?