Act 5:27 And when they had brought them, they set them before the council: and the high priest asked them, 28 Saying, Did not we straitly command you that ye should not teach in this name? and, behold, ye have filled Jerusalem with your doctrine, and intend to bring this man's blood upon us. 29 Then Peter and the other apostles answered and said, We ought to obey God rather than men.
There is no avoiding the eventual conflict between what fallen humanity under the influence of the evil one will demand, and what God commands or His Holy Spirit determines for ones life. When the laws of men begin to restrict the will of God, God is to be obeyed rather than men. This is a personal decision at times, and a corporate decision at other times, when fallen humanities laws are blatant attacks upon and or against God's law.