What about going to the beach or the gym? I wouldn't go to either of these because I was curious something.
Though the women dress poorly.
Some of this does depend on you.
Necessity to Go to Gym: Moderate (depending on how much you need it for your health, whether you have alternatives)
Necessity to Go to Beach: Low
Rest would depend on you. Is it a proximate occasion where there's a high likelihood of sin in going to either place? I would imagine the likelihood would be greater in going to the beach than in going to the gym, but both could be proximate occasions, depending on the individual.
If going to beach has a high likelihood of sin, since there's little necessity, I would say it would be grave sin to go there. In addition, don't forget the aspect of scandal. You would walk around completely non-plussed by the scantily clad women, but it's unbecoming and scandalous to be there. So, IMO, unless there's grave necessity, I would say that the beach should be off limits. Of course, there are other considerations, i.e. whether you can find a beach that is not crowded (some do exist). And it's also true that there are some beaches where the women (and men) might as well be naked, whereas others you could hardly distinguish from just being out at a Metro Park.
There might be good reason to go to a gym, and so a relatively small chance of committing a sin might be justified and entail no sin, or venial sin if the occasion were a little more proximate. If the likelihood of sin is high, then it would be grave sin to go, since there would be insufficient justification (you can find other ways to exercise). Again, other considerations can weigh in. There are some gyms where it's nearly all men there and/or the women tend not to dress scantily, whereas others are veritable "meat markets". If it's the latter type of gym, then there's also the possibility of scandal.
In terms of scandal, other things weigh in as well. It would be worse for a priest or religious to go to a beach with lots of scantily-clad women than for a layman, due to the increased scandal.
It's not easy and there's no simple calculus. You're best off just following the "What would Jesus do?" and "What would Our Lady do?" mentality. This is why St. Paul says that for those who love God, there is no law. If you're motivated by the positive of loving God, you're not needing to sit down with a calculator to figure out "how far can I go without sinning?", or "what can I get away with?" ... since you're positively motivated by loving God to the point that sin is excluded entirely.