Take home: take lots of fluids, high fibre diet, better gut health, better toilet habits, basically change your lifestyle. Prevention is better than cure
Also it is important to see a surgeon physically for evaluation.
References; UpToDate, Medscape, SurgeryNotes, Google images.