how to prevent market crash