God is omniscient and thus knew exactly what Lucifer would do. Angels don't have free will. Lucifer did exactly what God intended. God wanted Man to have free will. Free will requires the choice between good and evil. Man is the "bad guy" as well as the "good guy".