Share Facebook Twitter LinkedIn Pinterest Email CNBC’s Jim Cramer said the 1987 stock market crash offers an important lesson that can be applied to the recent AI sell-off.