The question is not only regarding those people who commit crime and don't pay attention to the fact that Allaah can punish people whenever, wherever and however He wishes rather this is applicable to everyone, as Allaah Subhanahu-wa-Ta'alaa says:
61. 'And if Allâh were to seize mankind for their wrongdoing, He would not leave on it (the earth) a single moving (living) creature, but He postpones them for an appointed term and when their term comes, neither can they delay nor can they advance it an hour (or a moment)..' An-Nahl
Disasters of such scale as the recent earthquakes and tsunamis are no doubt from the punishments of Allaah because of persistent wrong doing of people, Allaah says:
42. 'Verily, We sent (Messengers) to many nations before you (O Muhammad peace and blessings of Allah be upon him). And We seized them with extreme poverty (or loss in wealth) and loss in health (with calamities) so that they might humble themselves (believe with humility) 43. When Our Torment reached them, why then did they not humble themselves (believe with humility)? But their hearts became hardened, and Shaitân (Satan) made fair seeming to them that which they used to do.
44. So, when they forgot (the warning) with which they had been reminded, We opened for them the gates of every (pleasant) thing, until in the midst of their enjoyment in that which they were given, all of a sudden, We took them (in punishment), and lo! They were plunged into destruction with deep regrets and sorrows. 45. So the root of the people who did wrong were cut off. And all the praises and thanks be to Allâh, the Lord of the `AlamIn (mankind, jinns, and all that exists). .' Al-An'aam
In addition to being a punishment for some people these calamities are also warnings from Allaah Subhanahu-wa-Ta'alaa for others, but what many people do not understand is that criminals usually do not pay heed to warnings, so, when Allaah Subhanahu-wa-Ta'alaa drowned Fira'oon (Faro) Allaah said:
92. 'So this day We shall deliver your (dead) body (out from the sea) that you may be a sign to those who come after you! And verily, many among mankind are heedless of Our Ayât (proofs, evidences, verses, lessons, signs, revelations, etc.)..'
Yunus
This was a warning, but do we know of any tyrant ruler who found out about Fira'oon and then changed his ways? The answer is, no. Then who are these warnings for? These warnings are for those people who fear Allaah. Similarly these calamities and disasters have an effect on people who fear Allaah and not on those who persist in defying Allaah Azz-o-Jal because they don't truly fear Him.
Fear is the spirit of obedience, it affects the heart of man and heart being the king of the body affects the body. When there is fear in the heart, it becomes obedient to Allaah and when the heart is obedient then it makes the rest of the body obedient as well. The true fear of Allaah can not come in the heart without knowledge, this is why knowledge is the key to all this and this is why Allaah says:
28. 'It is only those who have knowledge among His slaves that fear Allâh.' Fatir
The more a person knows about Allaah by his Most High attributes the closer he gets and more obedient believer he becomes.
It should also be noted that every Muslim is not necessary a true believer (Mo'min) the one who truly fears Allaah and pay heed to warnings, as Allaah says:
14. 'The bedouins say: We believe. Say: You believe not but you only say, `We have surrendered (in Islâm),' for Faith has not yet entered your hearts. But if you obey Allâh and His Messenger (
peace and blessings of Allah be upon him), He will not decrease anything in reward for your deeds. Verily, Allâh is OftForgiving, Most Merciful..' Al-Hujraat
This is why many Muslims due to their deliberate ignorance are short of true belief and obedience to Allaah Subhanahu-wa-Ta'alaa and some Muslims lower themselves to the extent that they commit crimes without caring and paying heed to any warning that Allaah Subhanahu-wa-Ta'alaa reveals.
We seek refuge in Allaah from becoming careless and ask Him to help and guide us to do all that He is pleased with and his Peace and blessings be upon His last Prophet Muhammad.