means that
an old table superstition holds that serving salt to another person brings sorrow or bad luck. It is a folk belief rather than a factual warning.
For example, that it is bad luck if you add salt to another person's plate at table. This is a situation where “Help you to salt, help you to sorrow,” applies.