Israeli troops along the Gaza border have meanwhile received new rules of engagement under which they can only open fire if their lives are at risk or if they witness preparations for an imminent attack , defence officials said .