But you are to obey God. The question is if this includes obedience to the law.
So speak and so do as those who will be judged by the law of liberty. (James 2:12)
The Law of Liberty is a perfect law.
But he who looks into the perfect law of liberty and continues in it and is not a forgetful hearer but a doer of the work, this one will be blessed in what he does. (James 1:25)