"Trump administration appeals to restore travel ban, says earlier ruling was ‘second-guessing’ the president"

What does “second-guess” mean?
https://www.washingtonpost.com/politics/trump-administration-appeals-to-restore-travel-ban-says-earlier-ruling-was-second-guessing-the-president/2017/02/05/6fcdbb5a-eb4c-11e6-80c2-30e57e57e05d_story.html?utm_term=.ab802d14f730&wpisrc=nl_headlines&wpmm=1

Guessing what someone does beforehand or criticizing someone after something has happened?

Being critical after the fact, in this case not trusting the judgment of the president.

Thank you for your reply.