If there are fewer than three cards remaining in your library when Gutless Plunderer's last ability resolves, look at all of the cards in your library and follow the instructions in order. For example, if you had only two cards in your library, you would look at both, put up to one on top of your library, and put the rest into your graveyard. Sounds like a gutsy move.