The bad laws of the Torah? – Hilchot Shabbat 2:3
כשעושים דברים אלו, אין עושין אותן לא על ידי גויים, ולא על ידי קטנים, ולא על ידי עבדים, ולא על ידי נשים–כדי שלא תהא שבת קלה בעיניהם; אלא על ידי גדולי ישראל וחכמיהם. ואין מורין לנשים לעשות דברים אלו. ואסור להתמהמה בחילול שבת, לחולה שיש בו סכנה, שנאמר “אשר יעשה אותם האדם וחי בהם” (ויקרא יח,ה), ולא שימות בהם. הא למדת, שאין משפטי התורה נקמה בעולם, אלא רחמים וחסד ושלום בעולם. ואלו המינים שאומרים שזה חילול ואסור, עליהן הכתוב אומר “וגם אני נתתי להם, חוקים לא טובים; ומשפטים–לא יחיו, בהם” (יחזקאל כ,כה).
In a surprising twist, God tells Yechezkel (20:25) that: “Also, I gave you bad decrees, laws one cannot live by live”.
What could this mean? Aren’t the laws of Torah good?
The Rambam explains that this refers to the heretics who don’t allow one to break Shabbat to save a life. For such people the Torah is spiteful against people, and its laws are harmful.
The Torah is a tree of life for those who know and live by it. But those same laws can be a source of destruction and harm if we have a distorted outlook. For such a person, they would be better off without these laws, which are just harming them. Even the goodness or badness of God’s laws are subject to our free will.
A side question: Why are these people “Minim”, which implies denying God, instead of “kofrim batorah”?
As an aside, the Yerushalmi explains the pasuk differently, and explains the “bad decrees” as a reference to two days of Yom Tov.