There are many things you may encounter when swimming in the ocean. Alligators probably aren't one of them. While alligators can tolerate salt water for a few hours or even days, they are primarily freshwater animals, living in swampy areas, rivers, streams, lakes, and ponds.