In last two weeks its gone crazy can anybody help,had car 6 months no problems its a g 1990 mr2 mk 2.frosty morning started up car locked me out with engine running

?its continously locking and unlocking,when you lock car from drivers side and open alarm goes off if you open from passenger side it doesnt whats gone wrong

?help.
