Write this down - the test for negligence per se has three parts:
1. It has to be a safety statute (Like a speed limit)

2. The person who got hurt (the plaintiff) must be within the class of persons the statute was designed to protect (like how speed limits are meant to protect pedestrians)

3. The statute must be intended to protect against the "type of accident" that occurred (like a speed limit protecting against a pedestrian being hit by a car)

Same class of person, same class of risks. Easy money.
Goat-Note: Keep in mind - violation of a statute does
not prove
causation or damages. It proves duty (so long as the statute applies to you) and breach (which happened when you violated the law).
We still need causation and damages to be proven as well for a full negligence claim.
So negligence per se is really just a short-cut to prove the first two elements.