A stretch of beach at a seaside resort is set to close for the weekend as its golden sands become a motocross race course.