On none of the consoles You can do that. In case of PS3, You need first hack it and it must be CFW. Set QA flag, turn on debug updates in QA/DEX XMB and only then You are free to install any version of firmware. Do not believe in tutorials made by some trolls or just idiots on YT etc. (BTW: there are very few professional YouTubers which You can blindly trust, so I'm not saying all are crap of course). This is how this works and there is no workaround it, never be in future, because this is how Sony design it.
In case of PS4, currently only way to downgrade is hack the console. When You make memory image, You can update firmware but to restore it, You need again hack it or flash this specific image which created via hardware. It is hard to call that downgrade anyway.
Think about it, if downgrade can be such easy, why anyone would developing and publishing exploits for newer firmwares? And why console producers would allowing it in the first place as this is potential loose on games licenses (piracy) and online services (which demands newest fw)?