“You are running the risk of affairs.”

Does this mean that I will be the one who has an affair or is it my partner? I think it is the former one.

Without context, it's hard to say. It could mean either one. If you provide the paragraph this sentence is in, someone may be able to tell better.