Swimming is a low-impact exercise that can benefit dogs of all ages and sizes. However, excessive swimming or swimming in cold water can increase the risk of dog leg cramps. Proper swimming techniques, gradual introduction to water, and monitoring water temperature are important to ensure the safety of dogs during swimming activities.