Heck, just lie.. The Bible say’s not to “bear false witness against your neighbor”, in this case, you would be using false witness to save your neighbor- very different than using it against him.
On the other hand, people who could have saved their families by lying told the truth about their faith instead, and got them all killed.