'foul play' is an odd expression -- how did sport intrude?
Well, could it have transferred over from the expression "fair or foul"?

But, but ... "fair or foul" is a sports term. See: baseball - base runner - line drive - along foul line - waiting for ump's signal...