The market has been red-hot lately, but investors should be careful not to assume that will always be the case.