you can't do it without bending/reinterpreting the rules a bit. for example, if a line goes through a corner, does that count as 0 gates, 1 gate, or 2 gates? likewise, does it have to be one continuous line (or can you lift your pencil)? what about a line that is right on top of an edge of the rectangle? we'd need to have clearly defined rules to prove it's possible (by solving) or impossible...