LiPo battery in Vin

hi, to continue this thread, i too want to power a Xiao directly from a 3.7v 18650 battery. I understand that with the 18650 battery attached to the Vin and ground on the Xiao, and then also the usb plugged in, the 5V from the USB can be fed directly to the battery, which can be solved by putting a diode between the battery + and the Vin , to prevent the USB 5v from forcing itself into the battery?
Just for clarity the Xiao Vin can take a voltage range from 3-5v?
ALso when using a seperate charging module to charge the 18650 battery, is there any way to still power the Xiao while it is charging the battery…?

many thanks

paul