my friends lost his coins from offline wallet when he was chatting online on facebook messenger
sure he can't restore his coin
so how can protect offline wallet ?
How did your friend lost it while chatting if it is an offline wallet?
But to answer your question you should just be careful on what you would do with your wallet and where you would access it,
Don't easily trust people and don't enter from an unknown and untrusted sites.