I'd say that either to play or playing would work. My upbringing leads me to prefer to play , in that position. Compare: It is dangerous to play with fire.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.