This is the 833rd most frequent Czech word.
málem
"Málem" means "almost" or "nearly" in English.
Here, 'málem' is used to imply that the speaker was close to falling off but it did not actually happen.
Málem jsem spadl z kola.
I almost fell off the bike.
In this context, 'málem' is utilized to indicate that the act of forgetting was very close to occurring but was prevented.
On málem zapomněl na náš plán.
He almost forgot about our plan.
'Málem' here shows the situation was near to happening but ultimately didn't occur.