In Islam obedience to the law of the land is a religious duty. The Qur'an commands Muslims to remain faithful to not only Allah and the Prophet Muhammad (saw), but also the authority they live under:
O ye who believe! obey Allah, and obey His Messenger and those who are in authority over you (Ch.4: V.60).
Any country or government that guarantees religious freedom to followers of different faiths (not just Islam) must be owed loyalty. The Prophet Muhammad (saw) stressed this point when he said:
One who obeys his authority, obeys me. One who disobeys his authority, disobeys me.’ (Muslim)
When a Muslim finds anything wrong in the community he lives he is expected to give neseeha and find amicable ways of correcting it. The prophet said: The deen (religion) is naseehah (advice, sincerity).” We said, “To whom?” He said, “To Allah, His Book, His Messenger, and to the leaders of the Muslims and their common folk.” (Muslim)