Conflicting advice there, mm.
Have always plugged charger into turned off battery and then switched on or plugged in charger to mains whether battery on (36v) or off bike (48v).
Never had any sparks or noises or blown fuses yet.
I guess if there is a Diode on the battery's and/or battery dc...