He doesn’t get to make that call. If he refuses, fire his ass.
That is the key point. Esper could and should have limited himself in public to saying that the decision was up to the President and that he would act in a sound manner. Then Esper could have given his advice in private.