Why Andromeda Galaxy is shutting down its star formation?