The South African woke up with victory on the mind and crossed the line second, but a last lap infraction saw him demoted to P3