Sentence:  Wit which <WSD>borders</WSD> upon profaneness deserves to be branded as folly. 
Meaning of the word marked with <WSD> tags:  To approach; to come near to; to verge (with "on" or "upon").