God is perfect and almighty. This means, among other things, that God isn’t forced to create and/or to do any action which He does God is perfectly free. He transcends everything, including the necessity to create.
Hence only love can explain the Creation.
Besides that, God is not a victim of influences. So, His love towards anything remains perfect even if some rational beings (namely devils and some people) try to fight Him.
It is a marvelous thing exactly the fact that God gives to these creatures the power, time and existence to these creatures knowing that they, using wrongly their liberty, will try to fight Him. Any creature depends absolutely on the Creator.
God was, is and remains a loving Father.