Any individual company is a risky asset class. The advantage of a company you work for is that you are able to influence the outcome, and for small companies, you may know insider information that allows you to decide whether to invest money or your effort in the company.
But yes, working for, or investing in, a pre IPO company is risky and if you want to avoid risk you should just make sure you're getting a bi-weekly salary you're happy with.