This is a shortened version of "I would ___ if I were you." It's a way of giving someone advice without directly saying "You should ___":
You should say something to the waiter.
This is a direct way of giving advice, but it can seem a little rude. "I would ___" is more polite.