The argument that God is giving us freedom, which we misuse by sinning doesn't wash, since (according to Christians) God created us.
God has the wisdom to avoid sinning himself, but he chose not to give us that wisdom.