Connecting the power grid to an Easysolar II-GX/48/3009/35

I have connected the home’s electrical grid to the Easysolar II-GX /48/3000/35 through the AC-In input of the inverter in order to charge the Pylontech US3000C brand batteries and help the generation of photovoltaic panels on cloudy and rainy days. I have set a current input limit to the inverter of 5 A and also before connecting to the AC-in input I have placed an electrical box with a 6 A magnetothermic switch and a 300 mA residual current circuit breaker. Is there any problem with activating the connection?

Should be no problem. Batteries are always connected first.
You don’t really need the RCB (300mA?). If you find that the RCB trips as the inverter switches to charging, it can be removed from the circuit.
RCB’s (30mA) should be used on the AC output of the inverter.