Sounds of destruction and ruin become a tangible force wrapping entirely around the land of Moab, leaving no escape route. The cry of pain over their devastating defeat rings out along every border. This agonizing wailing acts as an abstract entity encircling the nation, showing that the enemy sword caught up with the Moabites even as they desperately tried to flee their homeland [מלבי״ם].
The bitter wailing of Moab's ruin [רש״י] travels as far as the locations of Eglaim and Beer-elim. The primary approach among commentators is that these were cities situated at the very edges of Moab's territory [רש״י, רד״ק, מצודת דוד]. They represent two completely opposite ends of the border, illustrating that the cries of despair echoed from one end of the country to the other [אברבנאל]. Alternatively, another perspective suggests that these settlements were located far outside of Moab. In this view, mentioning them highlights that the fleeing Moabites found no safety or rest from their pursuers, even after they managed to cross out of their own country [מלבי״ם].
While some believe the exact locations of these places remain completely unknown today [ביאור שטיינזלץ], others offer historical identifications. Eglaim is thought to be an ancient settlement mentioned in historical records from the region. As for Beer-elim, it is identified with the famous well from the Israelites' travels in the desert, located near the Moabite border. According to this understanding, the word elim translates to mighty and important men. This perfectly matches the historical description of the desert well, which was famously dug by the princes and nobles of the people [שד״ל].