Each square has an X and Y position, you are basically telling it that the area is between those positions like this, messed up the numbers but imagine thats X on the bottom and Y on the side.
You are either inside the area standing on the tile that is the X positions 3008, 3009, 3010, 3011... and at the same time standing inside where the tile has the Y position 3354, 3355, 3356, 3357...Code:absX > 3008 && absX < 3019 && absY > 3354 && absY < 3359);