WASHINGTON — It was a moment of peak Spock.

Hours after the globe-rattling election of a man whom Barack Obama has total disdain for, a toon who would take a chain saw to the former president’s legacy on policy and decency, Obama sent a message to his adviser Ben Rhodes: “There are more stars in the sky than grains of sand on the earth.”

Perhaps Obama should have used a different line with a celestial theme by Shakespeare: “The fault, dear Brutus, is not in our stars, but in ourselves.”

As president, Obama always found us wanting. We were constantly disappointing him. He would tell us the right thing to do and then sigh and purse his lips when his instructions were not followed.

Shortly after Donald Trump was elected, Rhodes writes in his new book, “The World as It Is,” Obama asked his aides, “What if we were wrong?”