For example, if someone is asking personal information which I know he will use to take advantage of me later, am I allowed to lie?

If you knew that he will harm you, then yes.