@mira With batteries and power adapters it's more justified than with say RAM or wireless network cards — these things might explode and cause fire when not made up to spec. With latter I'd more often go with a trusted brand, with former — I'd do my best to get the original parts if those are still available.
Not charging at all is obviously bad, but a warning is acceptable IMO 🤷