Daniel understood the move his enemies had made against him, and he saw how impossible it was to avoid. If he continued to worship God as he always did, his life would be under threat.
Do we fear God more than men? Are we ready to pay the price for our faithfulness to the Lord. We must not rush to think that we have some grounds to disobey the properly constituted government. There are a limited number of grounds for doing so and they are set out in Scripture, but this was certainly one of them, and no many can agree not to pray, not to worship God, or be forced into idolatry.