You should connect from the phone company to the RJ31X first. The idea is that the RJ31X allows the M1 to seize the phone so that it can call the monitoring station, even if you (or a bad guy) has a phone off the hook in the house. The other purpose is that the RJ31X give you a convenient place to disconnect the security system if it ever fails, so that you can get normal phone function again.