Most religious law is human based political bullshit.
I always thought that health concerns were the reason behind the restriction of Pork from the diet of the Judaic religion, but I was recently informed that it was more a political choice than even a health concern.
I always am at issue with ANY rule that is "proclaimed" as "holy" and to be followed w/o question if the one declaring it cannot give any other reason besides "God said so".
Most of God's rules (listed in Levitical Law) are explained, but there are a few which God simply says to do it and does not explain why. We wil never really know why, but that has not stopped the great Jewish sages from guessing at it for the last 3500 years.
The food rules are one of the unexplained ones, but I was explained it this way:
Food is the only thing you have 100% control over in your life. Provided you have enough food to choose what you want to eat, you have the power to make these choices. You can also choose to not eat and no one can force you to eat (barring very drastic measures). This is evident from VERY early on...ever try to feed a baby who does not want to eat? Not possible. The 1 month old wins every time.
So what God did is He created some food laws and said "If you love me, you will follow these laws for no other reason than I said so." We can come up with a myriad of reasons for each type of food law, but in the end it is simply God saying "Cause I said so" (soemething which all parents from the beginning of time have told their children, as an aside).
We are to give up control of the only thing in life which we have 100% control over.
Not an economic reason, not a health reason, though both of these may also be true...but they are coincidental. It is because God wants Jews to stay pure of soul, and doing what God says does that.
I may be one of God's creations, but I am not God's slave or God's soldier. The very free will he gave me is enough to question his absolute UNQUESTIONABLE rule, especially when that rule has always come from the mouths of those either not around or long dead.
Until our ego passes enough to forego the anthropomorphic "father figure" (almost) ALL our ruling gods have been over the years (From Zeus to Ra to "God"), I am unwilling to accept "his" portrayal as anything but a pretty picture religious leaders constructed in the popular image that most can believe in without proof or contact from.
God may exist, but it is a pretty safe bet that "he" is nothing like we have laughably tried to represent in our own parablistic manner.
You are correct, God did give you the free will to be wrong.

You also have the free will to say 2+2=5. Just saying that simply having the ability to claim something does not automatically mean what you claim must be true. Not an attack, just an observation.