@missmusical,
You ask the question, "Is lying to protect yourself (Or anyone else for that matter) ok with God."
There are two ways to righteous and two ways to sin.
Here are two scenarios; "A man sitting on his front porch see a young man running down the street, who then hides in the bushes in his yard, within moments come a mob of rough heads with baseball bats and fence pickets, they yell to the man asking if he had seen a young man run past? he lied and said the the young fellow had indeed run passed his house and had disappeared around the corner up ahead, the mob then took off in pursuit.
The second scenario, we have an over religious person sitting on his front porch, he also see the young man hiding in the bushes, and when the following mob of thugs ask him if he had see the young man, fearing that if he lied he might lose his eternal soul, he reveals the young boys hiding place, who is then flogged to within an inch of his life.
Which of the two men do you believe that God would declare as having acted in righteousness?