If the gym rules state that no spitting is allowed on the machines, it is important to follow those rules. Spitting on machines can create an unsanitary environment and potentially spread germs and bacteria to other gym-goers. Additionally, it can be disrespectful to others who use the machines after you. Instead, it is best to bring a towel or tissue to wipe away sweat and dispose of it properly, or to use the provided cleaning supplies to wipe down the equipment after use.