A New South Wales man drove onto a Melbourne beach in the early hours of the morning and got his rental car bogged in the sand near the water.