Since alligators can walk on land I don’t think there would be any way to keep them out of the water!!!
No, but they tend to attack near the water. Over 90% of alligator attacks occur in or near the water.