C.s. Lewis said this quote

The sin both of men and of angels, was rendered possible by the fact that God gave us free will.