Mathew 23:2- The teachers of the law and the Pharisees sit in Moses' seat. So you must be careful to do everything they tell you. But do not do what they do, for they do not practice what they preach.
These were given to HIS chosen Jewish disciples, who were going to live on there or may for a certain time, and will be still under the 'rule' of them who 'sit in 'Moses's seat'. Therefore HIS disciples, 'must be careful to do everything they tell them', as the 'Jewish customs requires' and 'in the Temple'. This is due to 'AGAPE peace' of CHRIST, 'imparted' in them, for not to cause, most probably a 'community disturbance' even to those who still obey the 'Law of Moses', perhaps.
That is why Apostle Paul said, 'when he is with the Jews, he lives like a Jew', even 'Christian Jews', in order to please them and win them over, in his preaching and teaching of the Gospel. And when he is with the Gentile Christians, he does the same.
But JESUS also said, "But do not do what they do, ..........."
Meaning while HIS disciples are also among them, HE said, 'do not do what the Pharisees do', but 'do' the 'word/teaching of CHRIST' and 'abide' and 'bear much fruit' and 'their fruit must also abide'.
Beloved Christians, by the Help of CHRIST and the HOLY SPIRIT, you are under the New Covenant/Testament rule that 'fulfills and 'accomplishes' the 'full requirements of the Old, the Law and the Prophets'. GOD made this New Covenant with you by the 'shedding of the blood of HIS SON'.
If we are not moving 'forward to liberty', therefore we are only 'looking back' and moving 'backward to bondage' once again,
GOD bless you all in the name of LORD JESUS CHRIST.