Arbroath substitute goalkeeper Ali Adams scored from 35 yards after being brought on to play as a striker as his side came from two goals down to draw with Scottish Championship leaders Raith Rovers.