A driver has found themselves in a precarious position after their car ploughed through roadside barriers and flipped over.