完成时一般有时间上的先后时用
比如 he admitted he had brken the window .用had brken表示打破窗户这个动作发生在admitted之前.
By thetime he realizes he ____ into a trap,it’ll be too late for him to do anythingabout it.在这个题中 陷入陷阱 在realize意识到之前 所以用完成时来表示这种时间上的先后.如果是realized 那么就要用 had walked 啦