The magnetic properties of iron-based superconductors AFe2As2 (A =K, Cs, and Rb), which are characterized by the V-shaped dependence of the critical temperature (Tc) on pressure (P ) were studied by means of the muon spin rotation/relaxation technique. In all three systems studied the magnetism was found to appear for pressures slightly below the critical one (Pc), i.e. at pressure where Tc(P ) changes the slope. Rather than competing, magnetism and superconductivity in AFe2As2 are coexisting at P Pc pressure region. Our results support the scenario of a transition from one pairing state to another, with different symmetries on either side of Pc.