Ayr United face a relegation play-off battle as Tam Scobbie waved a fond farewell to Falkirk by opening the scoring in a victory for the Bairns.
The departing Bairns defender signed off in style from the penalty spot after goalkeeper Ryan McWilliams had upended Farid El Alagui in the seventh minute.
McWilliams kept the deficit to a single goal as he repelled Darren Dods' bullet header before parrying El Alagui's long-range strike.
The Honest Men were level five minutes after the restart as Michael Moffat rifled home from 12 yards.
El Alagui then restored Falkirk's lead with 55 minutes gone, nodding home Blair Alston's cross from the by-line.
Roddy Paterson hit a post as Ayr sought a rapid response but they were soon two goals behind, Alston turning scorer by converting a Mark Millar cross.
Moffat clipped past Michael McGovern 10 minutes from time to set up a tense finale but Falkirk rode out the late storm.
Falkirk: McGovern, Dods, Wallace, Scobbie (Dick 90), Alston, Sibbald, Mark Millar (Brisbane 88), Jay Fulton, Kingsley, El Alagui (White 90), Faulds. Subs Not Used: Bowman, Rowan.
Booked: El Alagui. Goals: Scobbie 7 pen, El Alagui 56, Alston 63.
Ayr United: McWilliams, Armstrong (Wyllie 79), Smith, McKernon, Longridge, Hutchinson, Crawford, Ross Robertson, McGill (Martyn Campbell 66), Paterson (Trouten 66), Moffat. Subs Not Used: Cuthbert, Marshall.
Booked: McWilliams. Goals: Moffat 51,81.
Ref: Mike Tumilty