The legality of swimming in closed pool varies by jurisdiction. In some places, it may be trespassing, while in others, it may be considered a minor infraction. It is important to check the specific laws and regulations in the area of interest before doing so.