Let's see what God actually allowed in history.
Hebrew midwives disobeyed Pharaoh’s command to kill newborn boys (Exodus 1:17; cf. Hebrews 11:23). Queen Esther broke the Persian law by going to King Ahasuerus to plead for the Jews (Esther 4:16).
Shadrach, Meshach, and Abednego disobeyed Nebuchadnezzar, king of Babylon, when he commanded them to worship his golden image.
Daniel disobeyed King Darius’ rule on prayer to anyone except the king (Daniel 6:7-10).
Peter and John disobeyed the Jewish authorities when they told them to stop preaching Jesus.
In Acts 5:29, Peter and the apostles said, “We must obey God rather than men.”