Stop using it
Unplug it. A burning smell means something is overheating.
A burning or hot plastic smell from a refrigerator usually comes from an electrical part getting too hot: the start relay or start device on the compressor, a fan motor that has seized or is overheating, a loose or damaged plug or wire, or a light that stays on when the door closes and cooks its socket. Look at the plug and the outlet for browning or melting without touching them, and switch the breaker off if you see any. Move the food to coolers or another refrigerator. Don't run it again to find out where the smell comes from.
It usually turns out to be one of these
- start relay
- condenser fan motor
- evaporator fan motor
- power cord
- door switch
- light socket

