The "rules" change fairly often but I think the latest on border crossings is:
30 days for G7 passport holders
15 days for all others (45 of the 52 countries which get 30 day exemptions)
but who knows what local border officials might feel like on any day.
Recently any/all in/out border crossings were disallowed, and immigration officials might reject border runners once they reach some number of consecutive "runs".
Not sure the OP is even affected on this?
AFAIK, any potential airline IDB situation cannot be overcome by producing anything other than a issued air ticket. Maybe some foreign airline staff were able to be cajoled into accepting train tickets in the past? Some airlines are much more strict on this requirement, IMLE. I even have had a hard time with TG with a valid Visa/Extension of Stay/Re-Entry Permit.