I'm starting to learn how to code with Swift and was trying to solve this too, this is what I came up with on Swift's playground:
// Code
var x = 1
var y = 2
var lowX = 1
var lowY = 1
var highX = 3
var highY = 3
if (x, y) >= (lowX, lowY) && (x, y) <= (highX, highY ) {
print("inside")
} else {
print("not inside")
}
It prints inside