There is a misconception from when Paul said he becomes like the people he is trying to win.
Some men actually teach Paul lied to people to win them, but YHWH commanded us to not lie to eachother, and if Paul lied then he was being unrighteous.
Some men also teach Paul broke commandments to be like certain people who were lawless, but he did not.
I can go up to a lawless person and act in a way where they don't assume anything from just looking at me, and think I fit right in with them, instead of wearing a big red sign telling them I have the gospel of Truth and have come to extinguish their lies.
I can also relate to them and understand their situation.
When people see the big red sign, they throw up their shield in preparation for defense before you even get near to them.
By not wearing the big red sign, and by relating with them and not acting strange to them, you're able to reach them easier.
If I do that then I am not lying, and I also do not have to break any commandment, the point has nothing to do with commandments.
Paul was sharing his wisdom with us.
If a lawless person asks me if I keep the Law, I would tell them yes and not lie of course.
If they asked that and I did lie and told them no I didn't to look like I was one of them, where would the profit be in that?
Or if I went and ate pork with them, why would they repent from eating pork?
If I worshiped a false elohim with a pagan, why would they listen to me when I tell them we must not worship false elohim?
Paul in Romans teaches us we are foolish to judge and rebuke others if we are doing the same thing because we are condemning ourselves.
Isn't the point of appearing/becoming like someone to reach them to bring them to repentance?
Galatians 2:11 "But when Peter was come to Antioch I withstood him to the face because he was to be blamed, for before certain men came from James, he was eating with the Gentiles, but when they came, he drew back and separated himself fearing those of the circumcision, and the rest of the Jews acted hypocritically along with him so that even Barnabas was led astray by their hypocrisy. But when I saw that their conduct was not in step with the truth of the gospel, I said to Peter before them all, If you, though a Jew, live like a Gentile and not like a Jew, how can you compel the Gentiles to live like Jews?”
Paul above clearly makes the point here that if you act hypocritical then how are you going to compel the Gentiles to change.
And also Paul has clearly said;
Romans 3:7 "But if through my lie the truth of Elohim abounds to his glory, why am I still being condemned as a sinner? And why not do evil that good may come?—As some people slanderously charge us with saying. Their condemnation is righteous"