I asked another question and not only did percusse explain the code, but went even farther and wrote my code for me. That is beyond awesome. All I need to do is switch the part of the plot that the every nth point code acts on. I was able to do this in a roundabout way:
\documentclass{standalone}
\usepackage{pgfplots}
\makeatletter
\pgfplotsset{
my filter/.style args={every#1between#2and#3}{%
/pgfplots/x filter/.append code={%
\ifnum\coordindex<#2%
\pgfmathsetmacro\temp{int(mod(\coordindex,#1))}%
\ifnum0=\temp\relax
%pass
\else
\let\pgfmathresult\pgfutil@empty
\fi%
\else
\ifnum\coordindex>#3%
\pgfmathsetmacro\temp{int(mod(\coordindex,#1))}%
\ifnum0=\temp\relax
%pass
\else
\let\pgfmathresult\pgfutil@empty
\fi%
\else
%pass
\fi%
\fi%
}
}
}
\makeatother
\begin{document}
\begin{tikzpicture}
\begin{axis}[my filter=every 50 between 600 and 1050]
\addplot[samples=1501] {sin(deg(5*x))};
\end{axis}
\end{tikzpicture}
\end{document}
This has the effect I desire:

Unfortunately, the code I hacked is pretty dirty. Not only is the code repeated, but the style args read as if the code does the opposite. Does anybody know what syntax I might use to change every#1between#2and#3 to the opposite? I tried every#1except between#2and#3, every#1!between#2and#3, every#1not between#2and#3, every#1outside#2and#3, every#1out of#2and#3, every#1below#2or above#3 and things of that nature. None of them worked, and for the life of me, I can't find negative style arg keywords in the TikZ manual except for without.
