Blow-up versus boundedness in a nonlocal and nonlinear Fokker--Planck equation