“Whether it is right in the sight of God to listen to you rather than to God, you must judge." Acts 4:19
The clear meaning of Peter and John's response to the religious leaders here is that they have a higher duty to obey God, rather than men.
Obedience to God is a virtue. Obedience to man is only a virtue in so far as it agrees with obeying God.