How do you differentiate when someone is offering draw or resigning?

I've had this question for a long time, because sometimes I see over-the-board chess being played, and one person is offering a handshake, they other shakes his hand, and he resigned. but other times I see the same gesture being made/offered and the game is declared a draw by agreement! Do chess players ever get the draw offer mixed up and accidentally resign?