Stability analysis of pathogen-immune interaction dynamics