The ruling was not about the definition of "intercourse" but that of "adultery". That definition leaves no doubt about which type of intercourse.
adultery: voluntary sexual intercourse between a married man and someone other than his wife or between a married woman and someone other than her husband.