Not knowing the rules is not normally acceptable as a defence, but judges would normally have some sympathy & give a light punishment.
Knowing the rules, & attempting a workaround would be considered to be deceitful, & as such, would get a severe punishment.