The 26th president, who lived a life rich in ‘hard and dangerous endeavor,’ offers lessons to help understand the ambitions of the 47th one.