New superconducting and magnetic phases emerge on the magnetic criticality in CeIn3