The visitors looked set to cut the gap to just two points thanks to an early goal from Pavol Safranko but Jamie Lindsay grabbed a dramatic equaliser deep into stoppage time.
It means Steven Ferguson and Stuart Kettlewell's side have the chance to move eight points clear when they host Dunfermline Athletic on Tuesday.