A spirit is a supernatural being. A ghost is a synonym for spirit. "What ghost up must come down" sounds close to the popular phrase "what goes up must come down". The joke is playing on the word "ghost" because it somewhat sounds like "goes" and can be inserted into the "what goes up must come down" phrase. 
I knew that the spirit couldn ' t float around very long . What ghost up must come down .