Heart rate during exercise

Lindsey
Doc says to keep my heart rate under 150 during exercise. What is the risk if it goes over that?