WATCH: Giant croc stalks swimmer as panicked onlookers watch

TULUM, Mexico — A swimmer escaped a giant crocodile chasing him as onlookers watched at a beach in Mexico.

According to Fox News, the crocodile pursued as the swimmer frantically tried to reach land. One of the onlookers on the Boca Paila bridge threw something at the crocodile, which stopped and swam the other way.

The 40-second video was taken by Manuel Carrera and posted to his Facebook page.

Carrera said locals don’t enter the waters in the area because the male crocodile feeds off food left by tourists and fishermen.

“Unfortunately, that crocodile already associated us with food and as the video shows the boy was saved because the crocodile is well fed and chased at a pace that allowed him to reach the shore,”  Carrera writes.