A lot of people believe that. Some of the Hasidic, Calvin, Joseph Smith. For me, why would God want them to do what He told them NOT to do? There is no other example of that in the Bible where He wants us to disobey Him. Does He not mean what He says, and say what He means?
Why does a parent tell a young child never to cross the street unaccompanied, while at the same time fully expecting the child to someday do just that?
Was it God's intent to keep us ignorant, never having the knowledge of good and evil? Is that why He commanded Adam not to eat of the tree, because He wanted us to be perpetual children. Or was it simply because He knew what would happen when Adam ate of the tree... that his eyes would be opened, and that he would gain the knowledge of good and evil. And with it the knowledge of despair, and regret, and sorrow, and suffering, and heartbreak, and hopelessness, and greed, and envy. What parent could heartlessly inflict these things on their own children, without at least warning them of what they were about to choose?
You ask "
why would God want them to do what He told them NOT to do". He'd do it for the same reason that any parent would do it, because He doesn't want to see His children suffer. But He also doesn't want them to remain children, and that's why the tree is there in the first place. Because He never intended for us to remain ignorant of good and evil. Rather He wanted us to be what He created us to be, even though he knew the pain that that would inevitably entail.
And so He commanded Adam not to eat of the tree, just as a parent would command a child not to cross the street. But as we're well aware these things must pass, because children grow up, and innocence fades. And what were given as commands we come to recognize as warnings, not about what we must never do, but rather to prepare us for what we must inevitably do.
Yes, what God commands may at times seem to conflict with what He wills. But the two things aren't the same. The former are there only in as much as, and until, they serve to fulfill the latter.