A lot of manufacturers with rear firing ports state in their manuals to be at least a certain distance from the wall to avoid boomy bass, 20cm being typical though hence why I've generally avoided rear ported speakers as had them in the past. I know speakers like the R300/R3 are an exception as one of their uses is nearfield use at like a desktop but most aren't.
The manufacturers state that because they typically boost the bass and then you will run into issues with boundary reflections increasing the bass (+3dB near a wall, +6dB near a corner). However, it is trivial to EQ this out (and active speakers with shelving controls can do this, hence why they tell you that it is fine to slam the speaker right up against the wall).
This has nothing to do with the ports, however. (And I'd trust Genelec's take on this issue as they are a purely science and engineering first over all else company, no BS from them). A much bigger issue is SBIR, where reflections from the wall behind the speaker will completely null and cancel out a certain frequency - you cannot EQ this. You have two options - have the speaker a good couple of metres away from the wall, where the cancellation frequency is below the human hearing range. The next best option is to have the speakers as close to a wall as you can get, bringing the cancellation frequency to a region where you can treat it by putting some acoustic foam or whatever on the wall behind the speaker.
There is an awkward range where the cancellation frequency is in the regions you can hear, but cannot treat it without significant bass trapping. This is what you want to avoid because no amount of EQing will fix it.
Edit: Take a look at this https://www.genelec.com/monitor-placement