In plain words
Alas! A Pāṇḍya king worshipped You, and You let Agastya curse him; then You let a crocodile seize his foot. Who can think it through? Hari, salutation to Nārāyaṇa.
Word for word
Alas! When a Pāṇḍya king worshipped You, why, alas, did You have him cursed by Agastya? And then You had his foot bitten by a crocodile; and that too is beyond thinking. Hari, salutation to Nārāyaṇa.