وَنَرَى طَاعَتَهُمْ مِنْ طَاعَةِ اللَّهِ عَزَّ وَجَلَّ فَرِيضَةً مَا لَمْ يَأْمُرُوا بِمَعْصِيَةٍ
We regard obedience to them as part of obedience to Allah, binding so long as they do not order disobedience to Him.
Ma'siyah means disobeying Allah. A direction that conforms to religious law may be obeyed; an order to disobey Allah is not followed. The condition does not imply either unrestricted submission to every command or wholesale rejection of legitimate authority.