Importance of Gate Resistance: To get rid of the above issue it is recommended to use low value resistor in series with the logic input and the mosfet gate. With relatively lower frequencies(50 Hz to 1kHz), the value could be anywhere between 100 and 470 ohms, while for frequencies above this the value could be within 100 ohms, for much higher frequencies (10kHz and above) this must not exceed 50 ohms.
The above consideration allows exponential charging or gradual charging of the internal capacitors reducing or blunting of the chances of negative spikes across the drain/gate pins.