Misinformation. This does not allow the president to commit a crime and then say it was all in an official capacity. The very act of doing something criminal immediately puts it out of the realm of any official capacity. Obviously.
Akuden
The U.S. Constitution includes several provisions that limit the powers of the president and prevent the president from committing crimes without consequences:
Article I, Section 2 and Section 3: These sections provide the House of Representatives the power to impeach the president and the Senate the power to try and convict the president. Impeachment is a process by which the president can be removed from office for committing "Treason, Bribery, or other high Crimes and Misdemeanors." Article II, Section 4: This section specifically states that the president, vice president, and all civil officers of the United States can be removed from office on impeachment for, and conviction of, treason, bribery, or other high crimes and misdemeanors.
Article II, Section 1, Clause 8: The president must take an oath of office to "faithfully execute the Office of President of the United States, and will to the best of my Ability, preserve, protect and defend the Constitution of the United States." This oath implies a legal and ethical obligation to adhere to the law and Constitution.
Checks and Balances: The Constitution establishes a system of checks and balances, whereby the legislative and judicial branches can limit the actions of the executive branch. Congress can pass laws, override presidential vetoes, and control the budget, while the judiciary can review the constitutionality of presidential actions through judicial review.
Together, these provisions and principles ensure that the president is subject to the rule of law and can be held accountable for criminal actions.
You truly believe the court gave full immunity for all things don't you? You must have missed the part where it's only for actions carrying out functions of the constitution. Everything else enjoys no such privilege. If a president commits a crime it is not protected. Further, a court (not the supreme court) can determine if the act was official or not.