The market isn't necessarily efficient at a given point in time. Just because the stocks are going up, doesn't mean the valuations represent the intrinsic value of the company.
Shorting is a dangerous strategy, especially if you feel the prices are delusional. "The market can stay irrational longer than you can stay solvent."