"had known when"
"he would not have let the thief break into his house" or "he would have stopped the thief from breaking into his house"