We read of a similar situation in John 11:6-11:
when he heard that Lazarus was sick, he stayed where he was two more days, and then he said to his disciples, “Let us go back to Judea.” “But Rabbi,” they said, “a short while ago the Jews there tried to stone you, and yet you are going back?”Jesus answered, “Are there not twelve hours of daylight? Anyone who walks in the daytime will not stumble,for they see by this world’s light. It is when a person walks at night that they stumble, for they have no light.”
After he had said this, he went on to tell them, “Our friend Lazarus has fallen asleep; but I am going there to wake him up.”
< Here, we see the disciples speaking of the impending danger and Jesus fortifying them. But, we cannot be sure if the disciples had similar apprehension in the situation quoted in John 7. Maybe, only Jesus knew of the brewing plot in John 7. The attempt-to- stone incident they are quoting in John 11 is from John 8:59. Presuming that the Evangelist did put all the incidents in chronological order, the disciples get a clean chit in John 7.