You only learn that with experience really, when you get your license at 18 you know that what you do is correct and you know you are "right".
With experience, you know that being right is not helpful when trying to avoid a situation and your driving changes to defensive driving and reading much more into situations. I try to tell my children as well when they drive that when you look at Mr White Van driving in a lay by with a speed slower than yours but further ahead looking to join your road, that he will pull on the main road right in front of you and they don't care so you have to prepare for that. In their eyes he should not do that, which is correct - but being right does not help.