Literally, “three times is nautical law”. Probably due to Trinitarian associations with the number three, e.g. it being considered as a lucky number.
driemaal is scheepsrecht