Perhaps you are under the impression that the president is above the law.
He's not.  
 James Comey 's allegiance is to the US, it's people and constitution.
It is never to one person. I believe if it were, it would be called a dictatorship. 
Trump  attempting to subvert an investigation that may include him or his associates, may be an impeachable offense.