What must be done before rebirth in the hell realms becomes inevitable?
Five offences in Buddhism which are said to irrevocably propel the offender into hell are:


patricide,
matricide,
killing an Arhat,
injuring a Buddha,
creating schism in the Sangha


Smaller offenses like common murder, adultery etc. can still be "repaired" even if with great difficulties.