In CA, state law offers a bit of protection (on your own time, no company equipment, unrelated to company business) but still, following nostrademons' advice is probably best. I know of two ycombinator startups sued by founders' former employers just off the top of my head: adgrok by murthy nukala, who appears to be a complete dick; shred video by smule.