Rebels edge Highlanders in thriller