Any innkeeper against whom claim is made for loss sustained by a guest may show that such loss resulted from the negligence of such guest or of his failure to comply with the reasonable and proper regulations of the inn. (1903, c. 563, s. 7; Rev., s. 1914; C.S., s. 2253.)