Well first of all lying is a sin.
I don't know anywhere in the Bible it says that you can go ahead and sin to prevent something from happening.
If someone told me to deny Christ or die, should I then sin to save my life. God forbid, my soul is more presious then my life, and God is not going to work through sin, when He is everything but sin.