Checks if length of value is less than or equal to the provided length.

const passwordMaxLength = maxLength(16);

passwordMaxLength("aaaaaaaaaaaaaaaaa"); // Error: maxLength
passwordMaxLength("Test123456"); // passes