Clearly the SEC is not fit for purpose, and a lot of Madoff's investors would have done well to remember the old adage about not putting all your eggs in one basket.
As for gambling on / investing in the stock exchange (and let's face it, gambling is often pretty close to what it is), all I'll say, is you should never bet anything that you're not prepared to lose.