To me, it is very simple. Do not allow the plot to dictate the dialogue. It never feels natural when your characters 'force' the dialogue according to the plot. Sure, all the advice the other gave helps a lot, but it won't matter much if your characters know where the plot is heading.
For...