It is better if it has the R mark.
The R mark is a registered trademark, and products with an R mark are genuine.
The correct operation of the switching power supply charger is: when charging, plug in the battery first, then add the mains power; when sufficient, cut off the mains power first, and then unplug the battery.