He would go down the hillside into the cultivated lands by night , and look very curiously at the villagers in their huts , but he had a mistrust of men because Bagheera showed him a square box with a drop gate so cunningly hidden in the jungle that he nearly walked into it , and told him that it was a trap .