When you go to PVP you risk the chance to lose your items, wether it be to a player or the lava. It's just the risk you take. If you don't want to lose your items... don't PVP.

And like hotdog said - drink some potions if you don't want to die in the lava.