You bypass the overvoltage circuits behind the charging port when you come in via the output port. The hoverboard makers were doing that in 2017. With 100K units out in homes, all you needed were a few dozen chargers to go over voltage and cause a rash of exploding batteries. I believe they fixed it by switching to a single port BMS.
Having overvoltage protection saved my bacon when I was shipped a 52V battery/charger in 2016 by mistake when I ordered 48V. The 52V charger lived in my garage for a year, charging my 48V packs too. I eventually bought a 52V pack on purpose, and now I had to look at my chargers. One day I found I had two of them? Wow.
FInally, thru pilot error, I did connect a 48V charger to the output of a 36V pack. I did not burn my garage dowm, but I had to chuck the battery in a pail of water to kill it when I came back. It was so hot.