Trouble with clipping mask

I designed this for my laser cutter. All of the red line work extends beyond the square outline and there are even full lines outside of the square which you cannot see unless you hover the cursor over them. I would like to get rid of everything outside of the square but I can't figure out how. Another issue is that even though the lines become visible when hovered over, it won't let me select them. Any help would be appreciated! Thank you
