Being AA to AC it's cabotage. If on two tickets things should be ok but DO NOT tell AA about the second flight. If you have luggage you'll have to clear Canadian immigration, get bag, go through customs, check bag with AC and then clear US immigration (Flights from YUL to the US are CBP precleared.
Be sure to leave a lot of time between flights.