Buying an IPO on its first day of trading is often not a good idea.