While exercise is crucial for hernia prevention, individuals at risk should avoid exercises that excessively strain the abdominal muscles, such as heavy weightlifting, without proper technique. Focus on core-strengthening exercises that improve abdominal support and stability.