What if you had a vision where God told you to do something that you knew was wrong?
Well, He hasn't done that to me.
If I felt like God was telling me to do something that I thought or knew was wrong, I would figure that it was not God speaking but either my self or satan. If the voice persisted, I would question my opinion of what is right and wrong and I would question my sanity.
He even cleared that up with Peter before he went to see Cornelius.
AYR,
Infact, he had already cleared that up since Acts 2.
Acts 2
38 Then Peter said unto them, Repent, and be baptized every one of you in the name of Jesus Christ for the remission of sins, and ye shall receive the gift of the Holy Ghost.
39 For the promise is unto you, and to your children, and to all that are afar off, even as many as the Lord our God shall call.
Peter just had not caught the full revelation of what God was doing even though he (Peter) had spoken by inspiration.
__________________
...Testifying both to the Jews, and also to the Greeks, repentance toward God, and faith toward our Lord Jesus Christ...(Acts 20:21)
Again, you mean? God would never do a thing like that again? (Acts 10. )
Jesus had already taught that the old food laws were no longer obligatory as recorded in Mark 7:18-23
18 He replied to them, “So you too are without understanding? Don’t you see that nothing going into a person from outside can make him unclean? 19 For it doesn’t go into his heart but into his stomach, and it passes out into the latrine.” (Thus he declared all foods ritually clean.) 20 “It is what comes out of a person,” he went on, “that makes him unclean. 21 For from within, out of a person’s heart, come forth wicked thoughts, sexual immorality, theft, murder, adultery, 22 greed, malice, deceit, indecency, envy, slander, arrogance, foolishness…. 23 All these wicked things come from within, and they make a person unclean.” CJB
The way I understand this verse, the words that are shown in parentheses in the CJB are Mark's comment on what Jesus said. In the Thompson KJV those words are in red as if Jesus said them. There are differences of opinion among those who translate/edit/provide different versions as to whether that phrase is part of Jesus' words or a comment by the author of that Gospel.