Is it safe to recharge a battery without a specific device?
No, it is definitely not safe.

The Li batteries and compatible chargers usually mate with more than just 2 wires. The battery must include termoswitch or thermometer circuit which is servo feedback to charger controller. The constant parameter of control loop is not a voltage or current, but top temperature over time figure to avoid fire damage.