Mid-campaign we approached a building, and then the DM railroaded us into a certain side room, says that we barged in, and the guards in the room shouted to a different room for backup. The DM then said
...there are two other doors that no one checked and that could hold other henchmen...
I feel like we were forced into this position as we had no chance to look into , and is likely to carry on doing similar things unless someone speaks up.
Is there anything I can do/say to try to avoid this type of gameplay with this GM in future?