Alarm goes off on 1997 Ford Mustang

After locking the doors w/remote to set alarm with in 30 sec to a min the alarm goes off

Asked by for the 1997 Ford Mustang
the alarm brain might be defective . is it a factory or aftermarket alarm ?? let me know i installed these for a few years..
This is a ford factory alarm