The phrase playing with fire comes to mind.