In my experience, a major sin of GMs I played with, has been to negate the players having a proper background, or goal, to start with, going also against the rules, for the purpose of railroad: in plain sight, or carefully hidden in a sandbox style game, negating players' agency all the way...