The thing is - insider trading is illegal but it's poorly defined.
Martha Stewart wasn't convicted of insider trading - she was convicted of conspiracy, obstruction of justice, and making false statements to a federal investigator.
Mark Cuban wasn't convicted of insider trading either. He wasn't convicted at all. He kept his mouth shut and the jury found him not guilty of insider trading.
Her blunder was thinking she was too special (or too rich?... she wasn't really that rich) to have to deal with the laws, so she tried to scheme her way around the punishment.
As I recall, her insider trade only made or saved her something like $64k. That's laughably small, and the final punishment to her would have been little more than a slap on the wrist had she not blown it up by lying and cheating to avoid the original punishment.
It's not some innocent mom who accidentally listened to some advice, she really should have known better.