In many religions, God is both good and evil. He can give life, and can take it. This is the power and the supreme intelligence and we can not judge it. In our understanding, good and evil can be wrong
God is the side of good, and the devil is the side of evil. The world is so created for balance, because everything can not be only good or only evil.