Can I compare two pointers in case that some pointer variable is greater than another?
No. Comparing pointers for great-ness is undefined behavior (UB) unless those pointers are within the same object such as pointers to elements within an array (or one past).
Yet given OP's printf(), the coding goal is not to compare pointers but to compare the objects they point to.
// if(pointerAge < pointerAllowed)
if (*pointerAge < *pointerAllowed)
If you compare the pointers like this if(pointerAge < pointerAllowed), you are asking if the memory address where pointerAge is stored is less than the memory address where pointerAllowed is stored.
However, if you dereference the pointers like this if(*pointerAge < *pointerAllowed), you will be asking if the value contained in pointerAge is less than the value contained in pointerAllowed.