If you want to indicate that something almost happened, you can use the expression damned near. In British English, you can also say as near as dammit.
[informal] He damned near fooled me.
As he was to tell Miranda later, he as near as dammit left it there.