5A will be fine, assuming the cable is thick enough.
300w at 12V, with no losses, is 25A. What you really need to look at is what fuse the inverter instructions say it should have. Or somewhere on the case/plug you cut off. Even the old fuse will have a rating on it.