If god knew Adam would disobey him when he created Adam, then he had the option of leaving him as is and having Adam sin, or creating Adam in a way where Adam would not disobey him.
If god chose to create Adam in a way that he knew he would disobey, then that decision is also on god.
The only...