Physical insights into enhancing magnetic stability of 2D magnets