XIAO Overheating when using usb power and battery power

If connect a 3.7V Lipo battery to the 5V pin of XIAO and connect XIAO to USB, isn’t it dangerous because a Lipo battery is charged from USB 5V without current limit?