The courts. Military courts have been handling this for a long time. No reason civilian courts couldn't apply the same standards in the case of a president.
If the president is able to bring physical power to bear, then it matters little what the law says anyway.
If the president is able to bring physical power to bear, then it matters little what the law says anyway.