Cars are forced to swerve out of the way on a Scottish dual carriageway after a motorist drives in the wrong direction.