It is okay to replace a 3500-watt element with a larger one as long as the breaker is 30 amps and the wiring gauge is 10 or lower. If the wiring is the incorrect gauge, it will struggle to carry the load and burn out.
If that happens, you risk an electrical fire, which could be devastating.