When God created everything, He conceived Truth and lies, Light and darkness, Love and hate, Obedience and disobedience. He rejected the negative as not being something that is in Him. He is the only One that can define Himself and what He conceives. By conceiving those things the door was created for them to be born. In His Wisdom, He warned His creation that bringing those sorts of things to birth would be fruitless. Resulting in the opposite of Life, which is in Him and can only come from Him.
When He gave His Creation the Law of "do not eat or you will die", He was giving him the opportunity to obey or disobey. Adam decided to disobey. God gave authority to the lie and disobedience to have life only for a moment so the fruitlessness of it to be revealed. Thus, God's Truthfulness would also be vindicated. God does not lie and no lie has foundation. It cannot prove to be Life, only death.
The Seed of Life is Christ. The life of a seed is proving to be the fruit. The seed has to give up its own life in order to prove to be the fruit. In that sort of death, death is brought to nothing by the resulting life. But not all seeds prove to be the fruit, some are fruitless and the life that they contained comes to nothing. So it is with the lie. Disobedience is bad because it proves to be nothing.
God didn't Create simply to have it come to nothing. But in His Wisdom He has used the disobedience of His creation to teach it a valuable lesson.
He took upon Himself the blame for our error, because He is the only One that has NO blame in the matter. He gave us freewill, and men have used it for the path of fruitless pursuits. He took the blame for the birth of these things, for creating the door for their birth by giving us the law which gave sin and disobedience an opportunity to abound, and He has given us a door for for reconciliation to Him in the process. I don't see where God has done anything other than that which is for our benefit and knowledge and freedom.
If He had never said, 'No you must not eat' we never would have had freewill to choose. We would never had known 'Yes'.