Check of Semaphore number within range