An attempted suicide in China was averted by a quick-thinking emergency team that set up an inflatable pad just in time to save a man set on jumping off a viaduct.

The man, who was holding a knife and trying to commit suicide by jumping off the side of a viaduct in Hangzhou, China, ended up being saved by a huge inflatable bounce house-like structure. When the police learned of the suicide attempt, authorities quickly rushed to the scene, only to have him threaten to slit his own neck if they came any closer.

As the police drew closer to the man, he proceeded to jump off the viaduct and land on a massive inflatable moon bounce that was set up by the fire department. The tense scenario was caught on camera.