Remember, companies are looking at their interest 1st, yours second, if that. So chances are that whatever happens, the company will come out ahead.
From a tax perspective, you’d want to purchase them pre-IPO and hold onto them until long-term gains kick in. But don’t do that until you have a good reason to believe it is imminent, and only if you can afford to gamble with the money.