Do not obey such regulations/rules; they only cause people to do what their self-directed nature wants to do. Those regulations seem to be wise because they urge people to worship as mere human teachers have decided. They urge that people should humiliate themselves, and that people should treat their bodies harshly. But those regulations/rules do not help people at all to not do the sinful things that their self-directed nature wants to do.