A boundedness result of Landesman-Lazer type