Qualitative study of a model with Rastall gravity