Port number range checking