Diabetes can negatively impact male reproductive function by causing hormonal imbalances, reducing testosterone levels, and affecting sperm quality and erectile function.