Fix range check and message
Fix range check and message

gooddaytoday/TypeScript-Handbook-RU,LearnShare/TypeScript-Handbook,drmacm/TypeScript-Handbook,Microsoft/TypeScript-Handbook,zspitz/TypeScript-Handbook,mahp/TypeScript-Handbook