To invert motor direction, please use command M562. Remember to save eeprom and reset.
M562 E ;Invert extruder motor M500 ;Save to eeprom ;Re-power the printer to make config valid