So He could have made him differently that he would not sin or not made him at all right?
He made him perfect. So how He made him was not the issue.
If God did not want Lucifer to sin He could have prevented it by not giving Him free will.
So, are stating that you believe that God is author of sin?