Alternative reading: being stupid, getting incarcerated and committing suicide are all consequences of being an outlier at the negative end of the bell curve, where men are overrepresented due to higher variance of the respective trait.
Yes. Committing homicide is an irrational and maladaptive (i.e. stupid) thing to do in a peaceful 21st century society. Committing suicide is an irrational and maladaptive thing to do in almost all situations in history.
Maybe one has a temporary problem (depression) that pushes them to commit suicide. That doesn't mean they're stupid. Robin Williams was definitely not stupid, yet he commited suicide. Terry Pratchett was also diagnosed with Parkinson's disease and had contemplated the idea of assisted suicide in a country where this is legal (Switzerland).
Robin Williams had Lewy body dementia [0], which almost certainly contributed to his choice.