firstly is to put your IP address in the allow_hosts.rules file so that when connecting from that IP, you won't be blocked at all, on any port, so if you do something as silly as block port 22, it won't affect you.
secondly, is to raise a ticket with your hosts asking them nicely to either apply the above (recommended); or to edit your APF config to un-block port 22; or to stop your firewall.
third way is to ftp a new APF config file over the top of the old one (assuming you can), and then reboot the server.
fourth way is to telnet on and undo your changes. (assuming you havn't blocked the telnet port/turned telnet off like you really should have done)
Lastly, you do know that APF has a automatic 5-minute reset option so you can test your firewall changes safely?