You forgot an itty bitty little word in that!
The oath requires the military to obey the LAWFUL orders of the president but it does not mean that you serve the president.
There! Fixed it for you!
Ask Michael New or Ehren Watanada how that deciding on what is a lawful order and what isn't all on your own works out.