South Australia will open its borders to New South Wales after they were closed due to the coronavirus outbreak.