How can be colored a line/path in tikz?
i.e. green before the 5 and red after?

I have seen a option with
\usetikzlibrary{decorations.markings}
but this seems too much complex to the task (even though I couldn't do it). But is the only way?
\begin{tikzpicture}[scale=0.5]
\draw[ blue] (-6,0)-- (9,0);
\foreach \x in {0,5} {
\draw (\x,0.5) -- (\x,-0.5) node[below] {\x};
}
\draw[] (5,0) circle (0.5);
\end{tikzpicture}
