As one venerable law professor stated:
"Yes, the President has the power but he does not have the right to abuse that power."

ergo: The firing of an official in order to obstruct or terminate an investigation in which you or your administration is implicated is an abuse of that power.