Don't screw with customs
If walking from Slovak, you cross one bridge and you are on an isle. This is still Slovakia, but this is where the Hungarian border guards are. When you cross the second one, you are in Hungary. Don't screw with the customs people. These are the guys that drive the little green jeeps. I think they are called Magarosasag or something like that.