No sitting president has survived a serious primary challenge in the past 50 years. Here’s why Trump should be worried.