Controlling Stage.width if over 1300

Hey guys

I’m trying to say, "if the stage width is over 1300, then make the stage 1300. If it’s less than 1300, just let it be whatever value it already is. I tried this but it doesn’t work.

if Stage.width > 1300 {
Stage.width = 1300;
} else {
Stage.width = Stage.width;

I have a function that expands the stage width to be whatever size the browser window is, but don’t want anyone with an apple cinema display or something comparable to have the stage that wide.