This ability affects only sacrifices. It won’t stop a creature from being put into the graveyard due to lethal damage or having 0 toughness, and it won’t stop a permanent from being put into the graveyard due to the “legend rule.” None of these are sacrifices; they’re the result of game rules.