No, the lesson is: don't treat women poorly, period. And if you happen to be a notable public figure and treat women poorly, it'll be that much worse for you. Giving your work away for free and being idealistic doesn't give you a pass on bad behavior.
I would agree that the severity of RMS's remarks regarding Epstein/Minsky is lower than the press is making it out to be. But Stallman's bad behavior stretches back decades, and this oddly-shaped, not-entirely-correct straw happened to finally break the camel's back. Good riddance.