Playing a module with some friends and I am unknowingly guessing what will happen next in the module and its angering the DM

Just as the title says, me and my friends wanted to play some D&D and they picked a module that would be easy to us some of us in since they were new to D&D. Apparently through parts of the module, my character and by extension myself since I never played that particular module, was doing actions and guessing the motives and actions of the npcs and the enemy we were dealing with. As a result this is pissing off the DM and one of the other players because they hate metagaming.

But is it really metagaming when I am just getting lucky with what happens next cause I am playing my character smart and clever? Should I tone it down with the lucky guesses or is this a sign that I should probably stop playing with them cause it might lead to blows or a fight with the group?