From here I learned one can do what the Halacah says and still be doing a terrible sin. That is why learning Torah is the main thing not halacah--because halacha can be and often is highly misleading and can lead to terrible evil. It is not that halacha is wrong but that it is highly sensitive to initial conditions. That is it depends on the Gemara itself. It depends on the actual state of affairs. Without perfect knowledge of these two things it can be the exact opposite of what the Torah requires. [It certainly does not depend on what people say. ]
The trouble seems to be with what Reb Nachman called Torah scholars that are demons. שדיים יהודאיים which he brings from the Zohar. That is most of the people that supposedly represent the holy Torah are actually demons in human form. They may claim to be teaching Torah, but in fact are teaching the Torah of the Sitra achra. the dark side. For this reason I have tried to make it a point to emphasize going and learning Torah only from authentic Lithuanian kinds of yeshivas.
[The whole subject of Torah scholars that are demons and get their powers from the dark side is actually gone into by the Ari Isaac Luria to some degree. But Reb Nachman brings out the point in a way that you can't miss it. Sadly the entire religious world has missed the point, and still follow their leaders who are in fact demons in human form. The Gra tried to warn people. Rav Shach tried to warn people. But it is like my brother said hen he would try to warn people about a bad business deal. No one ever listens--without exception. They always make some kind of excuse. And then they fall.]