Natalie,
Apple will never pop these dialogs, or redirect you to a website. Thus, you can be certain that no matter what extent the criminals behind these make them look like official Apple sources, they are not, and do not interact with them. Just quit your browser without clicking any button, including Cancel.
If you are using Safari, launch it again by pressing the shift key which will avoid loading that site again. Clear your history, which will also clear your cookies. In Safari Preferences : Advanced panel, select Show Develop menu in menu bar, and press option+command+e to clear your browser cache. Quit Safari and launch normally. You may need to run Malwarebytes per K. Shaffer's post.
I refuse to revisit any website where this trash originates.